#F0CC5A#F0CC5A
#F0CC5A is a very light, vivid yellow. Relative luminance 0.624; OKLCH L 85.5% C 0.137 H 91.7°. Best body text is #000000 at 13.49:1 contrast (WCAG AA passes).
Color values
| HEX | #F0CC5A |
|---|---|
| RGB | rgb(240, 204, 90) |
| HSL | hsl(46, 83%, 65%) |
| HSV | hsv(46, 63%, 94%) |
| CMYK | cmyk(0%, 15%, 62.5%, 5.9%) |
| CIE-LAB | lab(83.15, 0.04, 59.99) |
| CIE-LCH | lch(83.15, 59.99, 89.96°) |
| OKLab | oklab(85.49% -0.004 0.1374) |
| OKLCH | oklch(85.49% 0.137 91.7) |
| XYZ | xyz(59.3763, 62.4524, 18.5979) |
| Luminance | 0.6245 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 1.47
Light Mustard
#F7D560
ΔE00 2.14
Light Gold
#FDDC5C
ΔE00 4.01
Pale Gold
#FDDE6C
ΔE00 4.19
Wheat (survey)
#FBDD7E
ΔE00 4.77
Sandy
#F1DA7A
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F0CC5A #5A7EF0
analogous
#F0815A #F0CC5A #C9F05A
triadic
#F0CC5A #5AF0CC #CC5AF0
tetradic
#F0CC5A #5AF081 #5A7EF0 #F05AC9
square
#F0CC5A #5AF081 #5A7EF0 #F05AC9
split-complementary
#F0CC5A #5AC9F0 #815AF0
monochromatic
#BE9511 #EBBB22 #F0CC5A #F5DD92 #FAEFCA
Accessibility & contrast
On white
1.56
#F0CC5A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.49
#F0CC5A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F0CC5A
13.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F0CC5A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F0CC5A | 1.00 | 1.56 | 13.49 | 13.49 |
| #FFFFFF | 1.56 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E0C94D
Deuteranopia (green-blind)
#E9D45F
Tritanopia (blue-blind)
#FFBDB3
Achromatopsia (no color)
#CFCFCF
Design tokens & code
CSS
--color: #f0cc5a; /* rgb */ color: rgb(240, 204, 90); /* oklch */ color: oklch(85.5% 0.137 91.7);
Tailwind
colors: {
custom: {
50: '#f8db8d',
500: '#f0cc5a',
950: '#000000',
},
}SCSS
$custom: #f0cc5a; $custom-light: #f8db8d; $custom-dark: #000000;
JSON
{
"hex": "#f0cc5a",
"rgb": {
"r": 240,
"g": 204,
"b": 90
},
"hsl": {
"h": 45.6,
"s": 83.333,
"l": 64.706
},
"oklch": {
"l": 0.85488,
"c": 0.13741,
"h": 91.7
},
"luminance": 0.62449
}Semantic roles & 50–950 ramp
primary
#F0CC5A
secondary
#3253BD
accent
#3AE006
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F