#F5F562#F5F562
#F5F562 is a very light, vivid yellow. Relative luminance 0.856; OKLCH L 94.3% C 0.166 H 109.2°. Best body text is #000000 at 18.12:1 contrast (WCAG AA passes).
Color values
| HEX | #F5F562 |
|---|---|
| RGB | rgb(245, 245, 98) |
| HSL | hsl(60, 88%, 67%) |
| HSV | hsv(60, 60%, 96%) |
| CMYK | cmyk(0%, 0%, 60%, 3.9%) |
| CIE-LAB | lab(94.14, -17.87, 68.66) |
| CIE-LCH | lch(94.14, 70.95, 104.59°) |
| OKLab | oklab(94.33% -0.0546 0.1567) |
| OKLCH | oklch(94.33% 0.166 109.2) |
| XYZ | xyz(72.5154, 85.6011, 24.2557) |
| Luminance | 0.8560 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pastel Yellow
#FFFE71
ΔE00 2.02
Butter Yellow
#FFFD74
ΔE00 2.07
Canary
#FDFF63
ΔE00 2.11
Custard
#FFFD78
ΔE00 2.34
Light Yellow
#FFFE7A
ΔE00 2.54
Straw
#FCF679
ΔE00 2.62
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F5F562 #6262F5
analogous
#F5AC62 #F5F562 #ACF562
triadic
#F5F562 #62F5F5 #F562F5
tetradic
#F5F562 #62F5AC #6262F5 #F562AC
square
#F5F562 #62F5AC #6262F5 #F562AC
split-complementary
#F5F562 #62ACF5 #AC62F5
monochromatic
#CFCF0D #F1F128 #F5F562 #F9F99C #FCFCD5
Accessibility & contrast
On white
1.16
#F5F562 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.12
#F5F562 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F5F562
18.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F5F562 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F5F562 | 1.00 | 1.16 | 18.12 | 18.12 |
| #FFFFFF | 1.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEB50
Deuteranopia (green-blind)
#FFF16B
Tritanopia (blue-blind)
#FFE7D6
Achromatopsia (no color)
#EEEEEE
Design tokens & code
CSS
--color: #f5f562; /* rgb */ color: rgb(245, 245, 98); /* oklch */ color: oklch(94.3% 0.166 109.2);
Tailwind
colors: {
custom: {
50: '#fbf894',
500: '#f5f562',
950: '#000000',
},
}SCSS
$custom: #f5f562; $custom-light: #fbf894; $custom-dark: #000000;
JSON
{
"hex": "#f5f562",
"rgb": {
"r": 245,
"g": 245,
"b": 98
},
"hsl": {
"h": 60,
"s": 88.024,
"l": 67.255
},
"oklch": {
"l": 0.94333,
"c": 0.16597,
"h": 109.2
},
"luminance": 0.85599
}Semantic roles & 50–950 ramp
primary
#F5F562
secondary
#3030CB
accent
#01E501
background
#FFFFFC
surface
#FFFEF5
border
#D7D6CF
text
#18170E
muted
#86857F