#F2E862#F2E862
#F2E862 is a very light, vivid yellow. Relative luminance 0.775; OKLCH L 91.4% C 0.154 H 105.0°. Best body text is #000000 at 16.49:1 contrast (WCAG AA passes).
Color values
| HEX | #F2E862 |
|---|---|
| RGB | rgb(242, 232, 98) |
| HSL | hsl(56, 85%, 67%) |
| HSV | hsv(56, 60%, 95%) |
| CMYK | cmyk(0%, 4.1%, 59.5%, 5.1%) |
| CIE-LAB | lab(90.54, -12.73, 64.68) |
| CIE-LCH | lch(90.54, 65.92, 101.13°) |
| OKLab | oklab(91.41% -0.0398 0.1484) |
| OKLCH | oklch(91.41% 0.154 105) |
| XYZ | xyz(67.6815, 77.4746, 22.9418) |
| Luminance | 0.7747 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Yellowish
#FAEE66
ΔE00 1.45
Sandy Yellow
#FDEE73
ΔE00 2.29
Dull Yellow
#EEDC5B
ΔE00 3.12
Straw
#FCF679
ΔE00 3.27
Butter Yellow
#FFFD74
ΔE00 4.52
Custard
#FFFD78
ΔE00 4.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2E862 #626CF2
analogous
#F2A062 #F2E862 #B4F262
triadic
#F2E862 #62F2E8 #E862F2
tetradic
#F2E862 #62F2A0 #626CF2 #F262B4
square
#F2E862 #62F2A0 #626CF2 #F262B4
split-complementary
#F2E862 #62B4F2 #A062F2
monochromatic
#C9BC11 #EDE029 #F2E862 #F7F09B #FBF9D3
Accessibility & contrast
On white
1.27
#F2E862 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
16.49
#F2E862 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2E862
16.49:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2E862 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2E862 | 1.00 | 1.27 | 16.49 | 16.49 |
| #FFFFFF | 1.27 | 1.00 | 21.00 | 21.00 |
| #000000 | 16.49 | 21.00 | 1.00 | 1.00 |
| ##000000 | 16.49 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FAE053
Deuteranopia (green-blind)
#FEE769
Tritanopia (blue-blind)
#FFDACB
Achromatopsia (no color)
#E4E4E4
Design tokens & code
CSS
--color: #f2e862; /* rgb */ color: rgb(242, 232, 98); /* oklch */ color: oklch(91.4% 0.154 105.0);
Tailwind
colors: {
custom: {
50: '#f9ef94',
500: '#f2e862',
950: '#000000',
},
}SCSS
$custom: #f2e862; $custom-light: #f9ef94; $custom-dark: #000000;
JSON
{
"hex": "#f2e862",
"rgb": {
"r": 242,
"g": 232,
"b": 98
},
"hsl": {
"h": 55.833,
"s": 84.706,
"l": 66.667
},
"oklch": {
"l": 0.91406,
"c": 0.15361,
"h": 105
},
"luminance": 0.77472
}Semantic roles & 50–950 ramp
primary
#F2E862
secondary
#333DC6
accent
#14E104
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18160D
muted
#86857F