#F8F381#F8F381
#F8F381 is a very light, vivid yellow. Relative luminance 0.856; OKLCH L 94.5% C 0.136 H 106.5°. Best body text is #000000 at 18.13:1 contrast (WCAG AA passes).
Color values
| HEX | #F8F381 |
|---|---|
| RGB | rgb(248, 243, 129) |
| HSL | hsl(57, 89%, 74%) |
| HSV | hsv(57, 48%, 97%) |
| CMYK | cmyk(0%, 2%, 48%, 2.7%) |
| CIE-LAB | lab(94.16, -13.35, 55.10) |
| CIE-LCH | lch(94.16, 56.70, 103.62°) |
| OKLab | oklab(94.5% -0.0387 0.1308) |
| OKLCH | oklch(94.5% 0.136 106.5) |
| XYZ | xyz(74.7262, 85.6446, 33.3593) |
| Luminance | 0.8564 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Manilla
#FFFA86
ΔE00 1.44
Straw
#FCF679
ΔE00 1.51
Yellowish Tan
#FCFC81
ΔE00 2.20
Pale Yellow
#FFFF84
ΔE00 2.66
Butter
#FFFF81
ΔE00 2.78
Custard
#FFFD78
ΔE00 2.89
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#F8F381 #8186F8
analogous
#F8B881 #F8F381 #C2F881
triadic
#F8F381 #81F8F3 #F381F8
tetradic
#F8F381 #81F8B8 #8186F8 #F881C2
square
#F8F381 #81F8B8 #8186F8 #F881C2
split-complementary
#F8F381 #81C2F8 #B881F8
monochromatic
#F1E80D #F5ED47 #F8F381 #FBF9BB #FDFCE2
Accessibility & contrast
On white
1.16
#F8F381 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.13
#F8F381 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #F8F381
18.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##F8F381 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##F8F381 | 1.00 | 1.16 | 18.13 | 18.13 |
| #FFFFFF | 1.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEB77
Deuteranopia (green-blind)
#FFF186
Tritanopia (blue-blind)
#FFE6D9
Achromatopsia (no color)
#EEEEEE
Design tokens & code
CSS
--color: #f8f381; /* rgb */ color: rgb(248, 243, 129); /* oklch */ color: oklch(94.5% 0.136 106.5);
Tailwind
colors: {
custom: {
50: '#fdf6a8',
500: '#f8f381',
950: '#000000',
},
}SCSS
$custom: #f8f381; $custom-light: #fdf6a8; $custom-dark: #000000;
JSON
{
"hex": "#f8f381",
"rgb": {
"r": 248,
"g": 243,
"b": 129
},
"hsl": {
"h": 57.479,
"s": 89.474,
"l": 73.922
},
"oklch": {
"l": 0.94502,
"c": 0.13644,
"h": 106.5
},
"luminance": 0.85643
}Semantic roles & 50–950 ramp
primary
#F8F381
secondary
#484ED5
accent
#0AE600
background
#FFFFFD
surface
#FFFEF7
border
#D7D6D0
text
#181710
muted
#868581