#F2F873#F2F873
#F2F873 is a very light, vivid yellow. Relative luminance 0.873; OKLCH L 94.9% C 0.156 H 111.4°. Best body text is #000000 at 18.45:1 contrast (WCAG AA passes).
Color values
| HEX | #F2F873 |
|---|---|
| RGB | rgb(242, 248, 115) |
| HSL | hsl(63, 90%, 71%) |
| HSV | hsv(63, 54%, 97%) |
| CMYK | cmyk(2.4%, 0%, 53.6%, 2.7%) |
| CIE-LAB | lab(94.84, -19.30, 62.14) |
| CIE-LCH | lch(94.84, 65.07, 107.25°) |
| OKLab | oklab(94.89% -0.0567 0.1449) |
| OKLCH | oklch(94.89% 0.156 111.4) |
| XYZ | xyz(73.2816, 87.2514, 29.1972) |
| Luminance | 0.8725 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish Tan
#FCFC81
ΔE00 1.98
Faded Yellow
#FEFF7F
ΔE00 2.02
Banana (survey)
#FFFF7E
ΔE00 2.15
Light Yellow
#FFFE7A
ΔE00 2.16
Butter
#FFFF81
ΔE00 2.24
Custard
#FFFD78
ΔE00 2.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2F873 #7973F8
analogous
#F8BB73 #F2F873 #AFF873
triadic
#F2F873 #73F2F8 #F873F2
tetradic
#F2F873 #73F8BB #7973F8 #F873AF
square
#F2F873 #73F8BB #7973F8 #F873AF
split-complementary
#F2F873 #73AFF8 #BB73F8
monochromatic
#DBE50B #EDF539 #F2F873 #F7FBAD #FCFEE2
Accessibility & contrast
On white
1.14
#F2F873 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.45
#F2F873 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2F873
18.45:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2F873 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2F873 | 1.00 | 1.14 | 18.45 | 18.45 |
| #FFFFFF | 1.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.45 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.45 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEE66
Deuteranopia (green-blind)
#FFF27A
Tritanopia (blue-blind)
#FFEBDB
Achromatopsia (no color)
#F0F0F0
Design tokens & code
CSS
--color: #f2f873; /* rgb */ color: rgb(242, 248, 115); /* oklch */ color: oklch(94.9% 0.156 111.4);
Tailwind
colors: {
custom: {
50: '#f9fa9f',
500: '#f2f873',
950: '#000000',
},
}SCSS
$custom: #f2f873; $custom-light: #f9fa9f; $custom-dark: #000000;
JSON
{
"hex": "#f2f873",
"rgb": {
"r": 242,
"g": 248,
"b": 115
},
"hsl": {
"h": 62.707,
"s": 90.476,
"l": 71.176
},
"oklch": {
"l": 0.94887,
"c": 0.15562,
"h": 111.4
},
"luminance": 0.8725
}Semantic roles & 50–950 ramp
primary
#F2F873
secondary
#433CD3
accent
#00E60A
background
#FFFFFC
surface
#FFFFF5
border
#D7D7CF
text
#18170F
muted
#868580