#F2CC51#F2CC51
#F2CC51 is a very light, vivid yellow. Relative luminance 0.627; OKLCH L 85.6% C 0.145 H 91.7°. Best body text is #000000 at 13.53:1 contrast (WCAG AA passes).
Color values
| HEX | #F2CC51 |
|---|---|
| RGB | rgb(242, 204, 81) |
| HSL | hsl(46, 86%, 63%) |
| HSV | hsv(46, 67%, 95%) |
| CMYK | cmyk(0%, 15.7%, 66.5%, 5.1%) |
| CIE-LAB | lab(83.26, 0.34, 64.02) |
| CIE-LCH | lch(83.26, 64.02, 89.70°) |
| OKLab | oklab(85.59% -0.0043 0.1445) |
| OKLCH | oklch(85.59% 0.145 91.7) |
| XYZ | xyz(59.6991, 62.6604, 16.7332) |
| Luminance | 0.6266 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Maize
#F4D054
ΔE00 1.04
Light Mustard
#F7D560
ΔE00 2.31
Light Gold
#FDDC5C
ΔE00 3.81
Pale Gold
#FDDE6C
ΔE00 4.42
Sand Yellow
#FCE166
ΔE00 5.32
Golden Yellow
#FEC615
ΔE00 5.34
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2CC51 #5177F2
analogous
#F27C51 #F2CC51 #C7F251
triadic
#F2CC51 #51F2CC #CC51F2
tetradic
#F2CC51 #51F27C #5177F2 #F251C7
square
#F2CC51 #51F27C #5177F2 #F251C7
split-complementary
#F2CC51 #51C7F2 #7C51F2
monochromatic
#BB920E #EEBB18 #F2CC51 #F6DD8A #FBEDC3
Accessibility & contrast
On white
1.55
#F2CC51 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.53
#F2CC51 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2CC51
13.53:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2CC51 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2CC51 | 1.00 | 1.55 | 13.53 | 13.53 |
| #FFFFFF | 1.55 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.53 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.53 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E1C942
Deuteranopia (green-blind)
#EBD457
Tritanopia (blue-blind)
#FFBCB2
Achromatopsia (no color)
#CFCFCF
Design tokens & code
CSS
--color: #f2cc51; /* rgb */ color: rgb(242, 204, 81); /* oklch */ color: oklch(85.6% 0.145 91.7);
Tailwind
colors: {
custom: {
50: '#fadb87',
500: '#f2cc51',
950: '#000000',
},
}SCSS
$custom: #f2cc51; $custom-light: #fadb87; $custom-dark: #000000;
JSON
{
"hex": "#f2cc51",
"rgb": {
"r": 242,
"g": 204,
"b": 81
},
"hsl": {
"h": 45.839,
"s": 86.096,
"l": 63.333
},
"oklch": {
"l": 0.85594,
"c": 0.14458,
"h": 91.7
},
"luminance": 0.62657
}Semantic roles & 50–950 ramp
primary
#F2CC51
secondary
#2E4FB9
accent
#38E303
background
#FFFEFC
surface
#FFFBF4
border
#D7D4CE
text
#18140C
muted
#86837F