#F7CF02#F7CF02
#F7CF02 is a very light, vivid yellow. Relative luminance 0.644; OKLCH L 86.3% C 0.177 H 94.8°. Best body text is #000000 at 13.88:1 contrast (WCAG AA passes).
Color values
| HEX | #F7CF02 |
|---|---|
| RGB | rgb(247, 207, 2) |
| HSL | hsl(50, 98%, 49%) |
| HSV | hsv(50, 99%, 97%) |
| CMYK | cmyk(0%, 16.2%, 99.2%, 3.1%) |
| CIE-LAB | lab(84.18, -1.26, 84.66) |
| CIE-LCH | lch(84.18, 84.67, 90.85°) |
| OKLab | oklab(86.33% -0.0147 0.1763) |
| OKLCH | oklch(86.33% 0.177 94.8) |
| XYZ | xyz(60.6853, 64.4080, 9.2931) |
| Luminance | 0.6440 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Gold
#FFD700
ΔE00 1.90
Sunflower Yellow
#FFDA03
ΔE00 2.62
Sun Yellow
#FFDF22
ΔE00 3.92
Dandelion
#FEDF08
ΔE00 4.11
Banana
#FFE135
ΔE00 4.54
Golden Yellow
#FEC615
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F7CF02 #022AF7
analogous
#F75502 #F7CF02 #A5F702
triadic
#F7CF02 #02F7CF #CF02F7
tetradic
#F7CF02 #02F755 #022AF7 #F702A5
square
#F7CF02 #02F755 #022AF7 #F702A5
split-complementary
#F7CF02 #02A5F7 #5502F7
monochromatic
#7E6901 #BA9C02 #F7CF02 #FDDD39 #FEE876
Accessibility & contrast
On white
1.51
#F7CF02 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
13.88
#F7CF02 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F7CF02
13.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F7CF02 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F7CF02 | 1.00 | 1.51 | 13.88 | 13.88 |
| #FFFFFF | 1.51 | 1.00 | 21.00 | 21.00 |
| #000000 | 13.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 13.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#E7CB00
Deuteranopia (green-blind)
#F1D722
Tritanopia (blue-blind)
#FFBDB0
Achromatopsia (no color)
#D2D2D2
Design tokens & code
CSS
--color: #f7cf02; /* rgb */ color: rgb(247, 207, 2); /* oklch */ color: oklch(86.3% 0.177 94.8);
Tailwind
colors: {
custom: {
50: '#ffdd6b',
500: '#f7cf02',
950: '#000000',
},
}SCSS
$custom: #f7cf02; $custom-light: #ffdd6b; $custom-dark: #000000;
JSON
{
"hex": "#f7cf02",
"rgb": {
"r": 247,
"g": 207,
"b": 2
},
"hsl": {
"h": 50.204,
"s": 98.394,
"l": 48.824
},
"oklch": {
"l": 0.86327,
"c": 0.17695,
"h": 94.8
},
"luminance": 0.64404
}Semantic roles & 50–950 ramp
primary
#F7CF02
secondary
#182A85
accent
#4CFF29
background
#FFFEFB
surface
#FFFBF1
border
#D7D4CB
text
#191508
muted
#87847D