#F2D97E#F2D97E
#F2D97E is a very light, moderate yellow. Relative luminance 0.700; OKLCH L 88.7% C 0.115 H 94.5°. Best body text is #000000 at 15.00:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D97E |
|---|---|
| RGB | rgb(242, 217, 126) |
| HSL | hsl(47, 82%, 72%) |
| HSV | hsv(47, 48%, 95%) |
| CMYK | cmyk(0%, 10.3%, 47.9%, 5.1%) |
| CIE-LAB | lab(87.00, -3.01, 47.72) |
| CIE-LCH | lch(87.00, 47.81, 93.61°) |
| OKLab | oklab(88.7% -0.0089 0.1144) |
| OKLCH | oklch(88.7% 0.115 94.5) |
| XYZ | xyz(65.1987, 70.0119, 29.8139) |
| Luminance | 0.7001 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy
#F1DA7A
ΔE00 1.01
Wheat (survey)
#FBDD7E
ΔE00 1.77
Pale Gold
#FDDE6C
ΔE00 3.57
Sand (survey)
#E2CA76
ΔE00 3.66
Light Mustard
#F7D560
ΔE00 4.10
Yellow Tan
#FFE36E
ΔE00 4.14
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D97E #7E97F2
analogous
#F29F7E #F2D97E #D1F27E
triadic
#F2D97E #7EF2D9 #D97EF2
tetradic
#F2D97E #7EF29F #7E97F2 #F27ED1
square
#F2D97E #7EF29F #7E97F2 #F27ED1
split-complementary
#F2D97E #7ED1F2 #9F7EF2
monochromatic
#DFB416 #ECC946 #F2D97E #F8E9B6 #FCF7E3
Accessibility & contrast
On white
1.40
#F2D97E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
15.00
#F2D97E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D97E
15.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D97E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D97E | 1.00 | 1.40 | 15.00 | 15.00 |
| #FFFFFF | 1.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 15.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 15.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#EAD576
Deuteranopia (green-blind)
#F1DD82
Tritanopia (blue-blind)
#FFCCC3
Achromatopsia (no color)
#DADADA
Design tokens & code
CSS
--color: #f2d97e; /* rgb */ color: rgb(242, 217, 126); /* oklch */ color: oklch(88.7% 0.115 94.5);
Tailwind
colors: {
custom: {
50: '#f8e4a5',
500: '#f2d97e',
950: '#000000',
},
}SCSS
$custom: #f2d97e; $custom-light: #f8e4a5; $custom-dark: #000000;
JSON
{
"hex": "#f2d97e",
"rgb": {
"r": 242,
"g": 217,
"b": 126
},
"hsl": {
"h": 47.069,
"s": 81.69,
"l": 72.157
},
"oklch": {
"l": 0.88697,
"c": 0.11472,
"h": 94.5
},
"luminance": 0.70009
}Semantic roles & 50–950 ramp
primary
#F2D97E
secondary
#4764CD
accent
#36DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#17150F
muted
#858480