#F7F271#F7F271
#F7F271 is a very light, vivid yellow. Relative luminance 0.845; OKLCH L 94.0% C 0.150 H 106.9°. Best body text is #000000 at 17.89:1 contrast (WCAG AA passes).
Color values
| HEX | #F7F271 |
|---|---|
| RGB | rgb(247, 242, 113) |
| HSL | hsl(58, 89%, 71%) |
| HSV | hsv(58, 54%, 97%) |
| CMYK | cmyk(0%, 2%, 54.3%, 3.1%) |
| CIE-LAB | lab(93.66, -14.57, 61.77) |
| CIE-LCH | lch(93.66, 63.46, 103.27°) |
| OKLab | oklab(94.03% -0.0438 0.1438) |
| OKLCH | oklch(94.03% 0.15 106.9) |
| XYZ | xyz(73.0926, 84.4728, 28.0742) |
| Luminance | 0.8447 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 1.03
Yellowish
#FAEE66
ΔE00 2.06
Custard
#FFFD78
ΔE00 2.26
Butter Yellow
#FFFD74
ΔE00 2.33
Manilla
#FFFA86
ΔE00 2.39
Yellowish Tan
#FCFC81
ΔE00 2.46
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F7F271 #7176F7
analogous
#F7AF71 #F7F271 #B9F771
triadic
#F7F271 #71F7F2 #F271F7
tetradic
#F7F271 #71F7AF #7176F7 #F771B9
square
#F7F271 #71F7AF #7176F7 #F771B9
split-complementary
#F7F271 #71B9F7 #AF71F7
monochromatic
#E1D90D #F4ED37 #F7F271 #FAF7AB #FDFCE2
Accessibility & contrast
On white
1.17
#F7F271 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.89
#F7F271 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F7F271
17.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F7F271 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F7F271 | 1.00 | 1.17 | 17.89 | 17.89 |
| #FFFFFF | 1.17 | 1.00 | 21.00 | 21.00 |
| #000000 | 17.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 17.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEA64
Deuteranopia (green-blind)
#FFEF78
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EDEDED
Design tokens & code
CSS
--color: #f7f271; /* rgb */ color: rgb(247, 242, 113); /* oklch */ color: oklch(94.0% 0.150 106.9);
Tailwind
colors: {
custom: {
50: '#fcf69e',
500: '#f7f271',
950: '#000000',
},
}SCSS
$custom: #f7f271; $custom-light: #fcf69e; $custom-dark: #000000;
JSON
{
"hex": "#f7f271",
"rgb": {
"r": 247,
"g": 242,
"b": 113
},
"hsl": {
"h": 57.761,
"s": 89.333,
"l": 70.588
},
"oklch": {
"l": 0.94026,
"c": 0.15032,
"h": 106.9
},
"luminance": 0.84471
}Semantic roles & 50–950 ramp
primary
#F7F271
secondary
#3A40D2
accent
#09E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580