#F2D271#F2D271
#F2D271 is a very light, vivid yellow. Relative luminance 0.662; OKLCH L 87.1% C 0.122 H 91.5°. Best body text is #000000 at 14.23:1 contrast (WCAG AA passes).
Color values
| HEX | #F2D271 |
|---|---|
| RGB | rgb(242, 210, 113) |
| HSL | hsl(45, 83%, 70%) |
| HSV | hsv(45, 53%, 95%) |
| CMYK | cmyk(0%, 13.2%, 53.3%, 5.1%) |
| CIE-LAB | lab(85.08, -0.56, 51.66) |
| CIE-LCH | lch(85.08, 51.66, 90.62°) |
| OKLab | oklab(87.13% -0.0032 0.122) |
| OKLCH | oklch(87.13% 0.122 91.5) |
| XYZ | xyz(62.6476, 66.1657, 25.0910) |
| Luminance | 0.6616 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Wheat (survey)
#FBDD7E
ΔE00 2.52
Light Mustard
#F7D560
ΔE00 2.70
Sandy
#F1DA7A
ΔE00 2.93
Sand (survey)
#E2CA76
ΔE00 3.46
Maize
#F4D054
ΔE00 3.47
Pale Gold
#FDDE6C
ΔE00 3.49
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F2D271 #7191F2
analogous
#F29171 #F2D271 #D2F271
triadic
#F2D271 #71F2D2 #D271F2
tetradic
#F2D271 #71F291 #7191F2 #F271D2
square
#F2D271 #71F291 #7191F2 #F271D2
split-complementary
#F2D271 #71D2F2 #9171F2
monochromatic
#D5A514 #EDC039 #F2D271 #F7E4A9 #FCF6E1
Accessibility & contrast
On white
1.48
#F2D271 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
14.23
#F2D271 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F2D271
14.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F2D271 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F2D271 | 1.00 | 1.48 | 14.23 | 14.23 |
| #FFFFFF | 1.48 | 1.00 | 21.00 | 21.00 |
| #000000 | 14.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 14.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E5CF68
Deuteranopia (green-blind)
#EDD875
Tritanopia (blue-blind)
#FFC4BC
Achromatopsia (no color)
#D4D4D4
Design tokens & code
CSS
--color: #f2d271; /* rgb */ color: rgb(242, 210, 113); /* oklch */ color: oklch(87.1% 0.122 91.5);
Tailwind
colors: {
custom: {
50: '#f9df9c',
500: '#f2d271',
950: '#000000',
},
}SCSS
$custom: #f2d271; $custom-light: #f9df9c; $custom-dark: #000000;
JSON
{
"hex": "#f2d271",
"rgb": {
"r": 242,
"g": 210,
"b": 113
},
"hsl": {
"h": 45.116,
"s": 83.226,
"l": 69.608
},
"oklch": {
"l": 0.87128,
"c": 0.12204,
"h": 91.5
},
"luminance": 0.66163
}Semantic roles & 50–950 ramp
primary
#F2D271
secondary
#3C5FCB
accent
#3CE006
background
#FFFEFC
surface
#FFFCF5
border
#D7D5CF
text
#18150E
muted
#86847F