#F0E68C

Khaki

#F0E68CKhaki

Luminance

0.770

Category

Yellow

Type

Light

Best On

#000000

Color Codes

All color formats for your project

HEX

HEX
#F0E68C
No #
F0E68C

RGB

RGB
rgb(240, 230, 140)
Values
R:240 G:230 B:140

HSL

HSL
hsl(54, 77%, 75%)
Values
H:54° S:77% L:75%

HSV / HSB

HSV
hsv(54, 42%, 94%)
Values
H:54° S:42% V:94%

CMYK

CMYK
cmyk(0%, 4%, 42%, 6%)
Values
C:0 M:4 Y:42 K:6

LAB

LAB
lab(90, -9, 45)
Values
L:90 a:-9 b:45

OKLCH

OKLCH
oklch(91.3% 0.112 102.8)
Values
L:91.3% C:0.112 H:102.8°

Code Formats

CSS
color: #F0E68C;
Swift
UIColor(red: 0.941, green: 0.902, blue: 0.549, alpha: 1.0)
Kotlin
Color(0xFFF0E68C)
Flutter
Color(0xFFF0E68C)
Android
#FFF0E68C

Contrast Analysis

WCAG compliance with grayscale colors

On White

1.28:1

Fail

On Black

16.40:1

AAA

Grayscale Contrast

Aa

0%

16.4

AAA
Aa

10%

13.6

AAA
Aa

20%

9.9

AAA
Aa

30%

6.6

AA
Aa

40%

4.5

AA-large
Aa

50%

3.1

AA-large
Aa

60%

2.2

Fail
Aa

70%

1.6

Fail
Aa

80%

1.3

Fail
Aa

90%

1.0

Fail
Aa

100%

1.3

Fail

Best Grayscale Contrast

#000000 with ratio 16.40:1

Aa

Color Harmonies

Harmonious color combinations

complementary

Two colors opposite on the color wheel (180°)

split-complementary

Base color + two colors adjacent to its complement

triadic

Three colors evenly spaced (120° apart)

tetradic

Four colors evenly spaced (90° apart)

analogous

Three colors adjacent on the color wheel (30° apart)

Color Variations

Tints, shades, tones, and full scale

Color Scale (50-900)

50

100

200

300

400

500

600

700

800

900

Tints (Lighter)

Shades (Darker)

Tones (Desaturated)

Gradients (OKLCH)

Primary

90°
CSS
linear-gradient(90deg, #F6F0BB 0%, #E5D334 100%)
OKLCH
linear-gradient(90deg, oklch(94.7% 0.069 102.2) 0%, oklch(85.6% 0.166 102.5) 100%)
Stops
0%
100%

Vibrant

135°
CSS
linear-gradient(135deg, #F9EB6C 0%, #FFED4D 100%)
OKLCH
linear-gradient(135deg, oklch(92.7% 0.148 103.0) 0%, oklch(93.4% 0.172 102.8) 100%)
Stops
0%
100%

Complementary

90°
CSS
linear-gradient(90deg, #F0E68C 0%, #8E98F0 100%)
OKLCH
linear-gradient(90deg, oklch(91.3% 0.112 102.8) 0%, oklch(70.8% 0.129 277.6) 100%)
Stops
0%
100%

Analogous

90°
CSS
linear-gradient(90deg, #F0B58E 0%, #F0E68C 50%, #C9F08E 100%)
OKLCH
linear-gradient(90deg, oklch(81.8% 0.086 54.6) 0%, oklch(91.3% 0.112 102.8) 50%, oklch(90.5% 0.131 126.6) 100%)
Stops
0%
50%
100%

Sunset

90°
CSS
linear-gradient(90deg, #F6CE55 0%, #EE6C2B 50%, #E6193C 100%)
OKLCH
linear-gradient(90deg, oklch(86.4% 0.144 90.6) 0%, oklch(68.0% 0.177 43.8) 50%, oklch(59.1% 0.228 21.2) 100%)
Stops
0%
50%
100%

Ocean

135°
CSS
linear-gradient(135deg, #19A1E6 0%, #22C3B6 50%, #47D1A3 100%)
OKLCH
linear-gradient(135deg, oklch(67.5% 0.146 238.9) 0%, oklch(73.8% 0.124 186.2) 50%, oklch(77.5% 0.136 166.9) 100%)
Stops
0%
50%
100%

Dark Mode

180°
CSS
linear-gradient(180deg, #E8D84A 0%, #2D2A10 100%)
OKLCH
linear-gradient(180deg, oklch(87.0% 0.158 102.8) 0%, oklch(28.1% 0.042 102.7) 100%)
Stops
0%
100%

Radial Glow

Radial
CSS
radial-gradient(circle, #F0E78E 0%, #E8D84A 100%)
OKLCH
radial-gradient(circle, oklch(91.6% 0.111 103.3) 0%, oklch(87.0% 0.158 102.8) 100%)
Stops
0%
100%

💡 About OKLCH Gradients

OKLCH (Oklch Color Space) provides perceptually uniform gradients with better color transitions than traditional RGB/HSL gradients. The format is oklch(L% C H) where L = Lightness (0-100%), C = Chroma (0-0.4), H = Hue (0-360°).

Generate Full Palette

Create a complete brand palette from this color with primary, secondary, accent, and neutral scales.

View Palette