#F2E796#F2E796
#F2E796 is a very light, moderate yellow. Relative luminance 0.782; OKLCH L 91.9% C 0.102 H 101.5°. Best body text is #000000 at 16.65:1 contrast (WCAG AA passes).
Color values
| HEX | #F2E796 |
|---|---|
| RGB | rgb(242, 231, 150) |
| HSL | hsl(53, 78%, 77%) |
| HSV | hsv(53, 38%, 95%) |
| CMYK | cmyk(0%, 4.5%, 38%, 5.1%) |
| CIE-LAB | lab(90.89, -7.68, 40.78) |
| CIE-LCH | lch(90.89, 41.50, 100.67°) |
| OKLab | oklab(91.88% -0.0203 0.1) |
| OKLCH | oklch(91.88% 0.102 101.5) |
| XYZ | xyz(70.7001, 78.2330, 40.2244) |
| Luminance | 0.7823 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (CSS)
#F0E68C
ΔE00 1.55
Dark Cream
#FFF39A
ΔE00 2.81
Buff
#FEF69E
ΔE00 3.27
Light Tan
#FBEEAC
ΔE00 3.39
Palegoldenrod
#EEE8AA
ΔE00 3.85
Vanilla
#F3E5AB
ΔE00 4.56
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2E796 #96A1F2
analogous
#F2B996 #F2E796 #CFF296
triadic
#F2E796 #96F2E7 #E796F2
tetradic
#F2E796 #96F2B9 #96A1F2 #F296CF
square
#F2E796 #96F2B9 #96A1F2 #F296CF
split-complementary
#F2E796 #96CFF2 #B996F2
monochromatic
#E5CE29 #EBDB60 #F2E796 #F9F3CC #FCF9E4
Accessibility & contrast
On white
1.26
#F2E796 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
16.65
#F2E796 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2E796
16.65:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2E796 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2E796 | 1.00 | 1.26 | 16.65 | 16.65 |
| #FFFFFF | 1.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 16.65 | 21.00 | 1.00 | 1.00 |
| ##000000 | 16.65 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#F5E290
Deuteranopia (green-blind)
#F9E799
Tritanopia (blue-blind)
#FFDCD3
Achromatopsia (no color)
#E5E5E5
Design tokens & code
CSS
--color: #f2e796; /* rgb */ color: rgb(242, 231, 150); /* oklch */ color: oklch(91.9% 0.102 101.5);
Tailwind
colors: {
custom: {
50: '#f7eeb6',
500: '#f2e796',
950: '#000000',
},
}SCSS
$custom: #f2e796; $custom-light: #f7eeb6; $custom-dark: #000000;
JSON
{
"hex": "#f2e796",
"rgb": {
"r": 242,
"g": 231,
"b": 150
},
"hsl": {
"h": 52.826,
"s": 77.966,
"l": 76.863
},
"oklch": {
"l": 0.91876,
"c": 0.10208,
"h": 101.5
},
"luminance": 0.78231
}Semantic roles & 50–950 ramp
primary
#F2E796
secondary
#5D6BCF
accent
#24DA0B
background
#FFFFFD
surface
#FFFEF8
border
#D7D6D1
text
#171611
muted
#858581