#F2F172#F2F172
#F2F172 is a very light, vivid yellow. Relative luminance 0.830; OKLCH L 93.4% C 0.149 H 108.6°. Best body text is #000000 at 17.60:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F172 |
|---|---|
| RGB | rgb(242, 241, 114) |
| HSL | hsl(60, 83%, 70%) |
| HSV | hsv(60, 53%, 95%) |
| CMYK | cmyk(0%, 0.4%, 52.9%, 5.1%) |
| CIE-LAB | lab(93.02, -15.99, 60.49) |
| CIE-LCH | lch(93.02, 62.56, 104.80°) |
| OKLab | oklab(93.43% -0.0474 0.1412) |
| OKLCH | oklch(93.43% 0.149 108.6) |
| XYZ | xyz(71.1124, 83.0046, 28.1918) |
| Luminance | 0.8300 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 1.71
Yellowish Tan
#FCFC81
ΔE00 2.36
Custard
#FFFD78
ΔE00 2.57
Manilla
#FFFA86
ΔE00 2.63
Butter Yellow
#FFFD74
ΔE00 2.69
Light Yellow
#FFFE7A
ΔE00 2.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F172 #7273F2
analogous
#F2B172 #F2F172 #B3F272
triadic
#F2F172 #72F2F1 #F172F2
tetradic
#F2F172 #72F2B1 #7273F2 #F272B3
square
#F2F172 #72F2B1 #7273F2 #F272B3
split-complementary
#F2F172 #72B3F2 #B172F2
monochromatic
#D6D414 #EDEB3A #F2F172 #F7F7AA #FCFCE2
Accessibility & contrast
On white
1.19
#F2F172 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.60
#F2F172 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F172
17.60:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F172 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F172 | 1.00 | 1.19 | 17.60 | 17.60 |
| #FFFFFF | 1.19 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.60 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.60 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE865
Deuteranopia (green-blind)
#FFED79
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EBEBEB
Design tokens & code
CSS
--color: #f2f172; /* rgb */ color: rgb(242, 241, 114); /* oklch */ color: oklch(93.4% 0.149 108.6);
Tailwind
colors: {
custom: {
50: '#f9f59e',
500: '#f2f172',
950: '#000000',
},
}SCSS
$custom: #f2f172; $custom-light: #f9f59e; $custom-dark: #000000;
JSON
{
"hex": "#f2f172",
"rgb": {
"r": 242,
"g": 241,
"b": 114
},
"hsl": {
"h": 59.531,
"s": 83.117,
"l": 69.804
},
"oklch": {
"l": 0.93426,
"c": 0.14899,
"h": 108.6
},
"luminance": 0.83003
}Semantic roles & 50–950 ramp
primary
#F2F172
secondary
#3D3ECC
accent
#08E006
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580