#F2D87C#F2D87C
#F2D87C is a very light, moderate yellow. Relative luminance 0.694; OKLCH L 88.5% C 0.116 H 94.0°. Best body text is #000000 at 14.89:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D87C |
|---|---|
| RGB | rgb(242, 216, 124) |
| HSL | hsl(47, 82%, 72%) |
| HSV | hsv(47, 49%, 95%) |
| CMYK | cmyk(0%, 10.7%, 48.8%, 5.1%) |
| CIE-LAB | lab(86.72, -2.68, 48.35) |
| CIE-LCH | lch(86.72, 48.42, 93.18°) |
| OKLab | oklab(88.47% -0.0082 0.1156) |
| OKLCH | oklch(88.47% 0.116 94) |
| XYZ | xyz(64.8140, 69.4469, 29.0554) |
| Luminance | 0.6944 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Sandy
#F1DA7A
ΔE00 1.15
Wheat (survey)
#FBDD7E
ΔE00 1.68
Pale Gold
#FDDE6C
ΔE00 3.43
Sand (survey)
#E2CA76
ΔE00 3.53
Light Mustard
#F7D560
ΔE00 3.80
Yellow Tan
#FFE36E
ΔE00 4.10
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D87C #7C96F2
analogous
#F29D7C #F2D87C #D1F27C
triadic
#F2D87C #7CF2D8 #D87CF2
tetradic
#F2D87C #7CF29D #7C96F2 #F27CD1
square
#F2D87C #7CF29D #7C96F2 #F27CD1
split-complementary
#F2D87C #7CD1F2 #9D7CF2
monochromatic
#DEB216 #ECC744 #F2D87C #F8E9B4 #FCF7E3
Accessibility & contrast
On white
1.41
#F2D87C on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.89
#F2D87C on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D87C
14.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D87C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D87C | 1.00 | 1.41 | 14.89 | 14.89 |
| #FFFFFF | 1.41 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E9D474
Deuteranopia (green-blind)
#F0DD80
Tritanopia (blue-blind)
#FFCBC2
Achromatopsia (no color)
#D9D9D9
Design tokens & code
CSS
--color: #f2d87c; /* rgb */ color: rgb(242, 216, 124); /* oklch */ color: oklch(88.5% 0.116 94.0);
Tailwind
colors: {
custom: {
50: '#f8e3a4',
500: '#f2d87c',
950: '#000000',
},
}SCSS
$custom: #f2d87c; $custom-light: #f8e3a4; $custom-dark: #000000;
JSON
{
"hex": "#f2d87c",
"rgb": {
"r": 242,
"g": 216,
"b": 124
},
"hsl": {
"h": 46.78,
"s": 81.944,
"l": 71.765
},
"oklch": {
"l": 0.88469,
"c": 0.11592,
"h": 94
},
"luminance": 0.69444
}Semantic roles & 50–950 ramp
primary
#F2D87C
secondary
#4563CD
accent
#37DE07
background
#FFFEFC
surface
#FFFCF6
border
#D7D5D0
text
#18150F
muted
#868480