#F9F170#F9F170
#F9F170 is a very light, vivid yellow. Relative luminance 0.842; OKLCH L 94.0% C 0.150 H 105.7°. Best body text is #000000 at 17.84:1 contrast (WCAG AA passes).
Color values
| HEX | #F9F170 |
|---|---|
| RGB | rgb(249, 241, 112) |
| HSL | hsl(56, 92%, 71%) |
| HSV | hsv(56, 55%, 98%) |
| CMYK | cmyk(0%, 3.2%, 55%, 2.4%) |
| CIE-LAB | lab(93.55, -13.35, 62.13) |
| CIE-LCH | lch(93.55, 63.55, 102.13°) |
| OKLab | oklab(93.98% -0.0405 0.1444) |
| OKLCH | oklch(93.98% 0.15 105.7) |
| XYZ | xyz(73.4491, 84.2225, 27.7136) |
| Luminance | 0.8422 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 1.24
Yellowish
#FAEE66
ΔE00 1.42
Sandy Yellow
#FDEE73
ΔE00 1.85
Manilla
#FFFA86
ΔE00 2.63
Custard
#FFFD78
ΔE00 2.66
Butter Yellow
#FFFD74
ΔE00 2.70
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F9F170 #7078F9
analogous
#F9AC70 #F9F170 #BDF970
triadic
#F9F170 #70F9F1 #F170F9
tetradic
#F9F170 #70F9AC #7078F9 #F970BD
square
#F9F170 #70F9AC #7078F9 #F970BD
split-complementary
#F9F170 #70BDF9 #AC70F9
monochromatic
#E5D80A #F7EB35 #F9F170 #FBF7AB #FEFCE2
Accessibility & contrast
On white
1.18
#F9F170 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.84
#F9F170 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F9F170
17.84:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F9F170 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F9F170 | 1.00 | 1.18 | 17.84 | 17.84 |
| #FFFFFF | 1.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.84 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.84 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE963
Deuteranopia (green-blind)
#FFEF77
Tritanopia (blue-blind)
#FFE3D4
Achromatopsia (no color)
#ECECEC
Design tokens & code
CSS
--color: #f9f170; /* rgb */ color: rgb(249, 241, 112); /* oklch */ color: oklch(94.0% 0.150 105.7);
Tailwind
colors: {
custom: {
50: '#fef59d',
500: '#f9f170',
950: '#000000',
},
}SCSS
$custom: #f9f170; $custom-light: #fef59d; $custom-dark: #000000;
JSON
{
"hex": "#f9f170",
"rgb": {
"r": 249,
"g": 241,
"b": 112
},
"hsl": {
"h": 56.496,
"s": 91.946,
"l": 70.784
},
"oklch": {
"l": 0.93975,
"c": 0.15001,
"h": 105.7
},
"luminance": 0.8422
}Semantic roles & 50–950 ramp
primary
#F9F170
secondary
#3942D4
accent
#0DE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580