#F9F172#F9F172
#F9F172 is a very light, vivid yellow. Relative luminance 0.843; OKLCH L 94.0% C 0.148 H 105.6°. Best body text is #000000 at 17.85:1 contrast (WCAG AA passes).
Color values
| HEX | #F9F172 |
|---|---|
| RGB | rgb(249, 241, 114) |
| HSL | hsl(56, 92%, 71%) |
| HSV | hsv(56, 54%, 98%) |
| CMYK | cmyk(0%, 3.2%, 54.2%, 2.4%) |
| CIE-LAB | lab(93.57, -13.20, 61.26) |
| CIE-LCH | lch(93.57, 62.67, 102.16°) |
| OKLab | oklab(94% -0.0399 0.1428) |
| OKLCH | oklch(94% 0.148 105.6) |
| XYZ | xyz(73.5617, 84.2675, 28.3066) |
| Luminance | 0.8427 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 1.15
Yellowish
#FAEE66
ΔE00 1.57
Sandy Yellow
#FDEE73
ΔE00 1.81
Manilla
#FFFA86
ΔE00 2.47
Custard
#FFFD78
ΔE00 2.67
Butter Yellow
#FFFD74
ΔE00 2.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F9F172 #727AF9
analogous
#F9AD72 #F9F172 #BDF972
triadic
#F9F172 #72F9F1 #F172F9
tetradic
#F9F172 #72F9AD #727AF9 #F972BD
square
#F9F172 #72F9AD #727AF9 #F972BD
split-complementary
#F9F172 #72BDF9 #AD72F9
monochromatic
#E7DA0A #F7EB37 #F9F172 #FBF7AD #FEFCE2
Accessibility & contrast
On white
1.18
#F9F172 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.85
#F9F172 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F9F172
17.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F9F172 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F9F172 | 1.00 | 1.18 | 17.85 | 17.85 |
| #FFFFFF | 1.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFE965
Deuteranopia (green-blind)
#FFEF79
Tritanopia (blue-blind)
#FFE3D5
Achromatopsia (no color)
#ECECEC
Design tokens & code
CSS
--color: #f9f172; /* rgb */ color: rgb(249, 241, 114); /* oklch */ color: oklch(94.0% 0.148 105.6);
Tailwind
colors: {
custom: {
50: '#fef59e',
500: '#f9f172',
950: '#000000',
},
}SCSS
$custom: #f9f172; $custom-light: #fef59e; $custom-dark: #000000;
JSON
{
"hex": "#f9f172",
"rgb": {
"r": 249,
"g": 241,
"b": 114
},
"hsl": {
"h": 56.444,
"s": 91.837,
"l": 71.176
},
"oklch": {
"l": 0.93997,
"c": 0.14825,
"h": 105.6
},
"luminance": 0.84265
}Semantic roles & 50–950 ramp
primary
#F9F172
secondary
#3B44D4
accent
#0EE600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580