#F7F270#F7F270
#F7F270 is a very light, vivid yellow. Relative luminance 0.844; OKLCH L 94.0% C 0.151 H 106.9°. Best body text is #000000 at 17.89:1 contrast (WCAG AA passes).
Color values
| HEX | #F7F270 |
|---|---|
| RGB | rgb(247, 242, 112) |
| HSL | hsl(58, 89%, 70%) |
| HSV | hsv(58, 55%, 97%) |
| CMYK | cmyk(0%, 2%, 54.7%, 3.1%) |
| CIE-LAB | lab(93.65, -14.64, 62.20) |
| CIE-LCH | lch(93.65, 63.90, 103.25°) |
| OKLab | oklab(94.02% -0.0441 0.1446) |
| OKLCH | oklch(94.02% 0.151 106.9) |
| XYZ | xyz(73.0366, 84.4504, 27.7793) |
| Luminance | 0.8445 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Straw
#FCF679
ΔE00 1.09
Yellowish
#FAEE66
ΔE00 2.00
Custard
#FFFD78
ΔE00 2.26
Butter Yellow
#FFFD74
ΔE00 2.31
Manilla
#FFFA86
ΔE00 2.47
Light Yellow
#FFFE7A
ΔE00 2.50
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F7F270 #7075F7
analogous
#F7AF70 #F7F270 #B8F770
triadic
#F7F270 #70F7F2 #F270F7
tetradic
#F7F270 #70F7AF #7075F7 #F770B8
square
#F7F270 #70F7AF #7075F7 #F770B8
split-complementary
#F7F270 #70B8F7 #AF70F7
monochromatic
#E0D80D #F4ED36 #F7F270 #FAF7AA #FDFCE2
Accessibility & contrast
On white
1.17
#F7F270 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
17.89
#F7F270 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F7F270
17.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F7F270 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F7F270 | 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)
#FFEA63
Deuteranopia (green-blind)
#FFEF77
Tritanopia (blue-blind)
#FFE4D5
Achromatopsia (no color)
#EDEDED
Design tokens & code
CSS
--color: #f7f270; /* rgb */ color: rgb(247, 242, 112); /* oklch */ color: oklch(94.0% 0.151 106.9);
Tailwind
colors: {
custom: {
50: '#fcf69d',
500: '#f7f270',
950: '#000000',
},
}SCSS
$custom: #f7f270; $custom-light: #fcf69d; $custom-dark: #000000;
JSON
{
"hex": "#f7f270",
"rgb": {
"r": 247,
"g": 242,
"b": 112
},
"hsl": {
"h": 57.778,
"s": 89.404,
"l": 70.392
},
"oklch": {
"l": 0.94016,
"c": 0.15119,
"h": 106.9
},
"luminance": 0.84448
}Semantic roles & 50–950 ramp
primary
#F7F270
secondary
#3A3FD2
accent
#08E600
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170F
muted
#868580