#FAF787#FAF787
#FAF787 is a very light, vivid yellow. Relative luminance 0.886; OKLCH L 95.6% C 0.135 H 107.3°. Best body text is #000000 at 18.72:1 contrast (WCAG AA passes).
Color values
| HEX | #FAF787 |
|---|---|
| RGB | rgb(250, 247, 135) |
| HSL | hsl(58, 92%, 75%) |
| HSV | hsv(58, 46%, 98%) |
| CMYK | cmyk(0%, 1.2%, 46%, 2%) |
| CIE-LAB | lab(95.41, -13.99, 53.85) |
| CIE-LCH | lch(95.41, 55.63, 104.57°) |
| OKLab | oklab(95.56% -0.0401 0.1285) |
| OKLCH | oklch(95.56% 0.135 107.3) |
| XYZ | xyz(77.0599, 88.5967, 35.9585) |
| Luminance | 0.8860 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Manilla
#FFFA86
ΔE00 0.99
Yellowish Tan
#FCFC81
ΔE00 1.67
Straw
#FCF679
ΔE00 1.89
Pale Yellow
#FFFF84
ΔE00 2.03
Butter
#FFFF81
ΔE00 2.25
Faded Yellow
#FEFF7F
ΔE00 2.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#FAF787 #878AFA
analogous
#FABD87 #FAF787 #C3FA87
triadic
#FAF787 #87FAF7 #F787FA
tetradic
#FAF787 #87FABD #878AFA #FA87C3
square
#FAF787 #87FABD #878AFA #FA87C3
split-complementary
#FAF787 #87C3FA #BD87FA
monochromatic
#F5EF11 #F8F34C #FAF787 #FCFBC2 #FEFDE2
Accessibility & contrast
On white
1.12
#FAF787 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
18.72
#FAF787 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #FAF787
18.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##FAF787 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##FAF787 | 1.00 | 1.12 | 18.72 | 18.72 |
| #FFFFFF | 1.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 18.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 18.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#FFEF7D
Deuteranopia (green-blind)
#FFF48C
Tritanopia (blue-blind)
#FFEADD
Achromatopsia (no color)
#F2F2F2
Design tokens & code
CSS
--color: #faf787; /* rgb */ color: rgb(250, 247, 135); /* oklch */ color: oklch(95.6% 0.135 107.3);
Tailwind
colors: {
custom: {
50: '#fef9ac',
500: '#faf787',
950: '#000000',
},
}SCSS
$custom: #faf787; $custom-light: #fef9ac; $custom-dark: #000000;
JSON
{
"hex": "#faf787",
"rgb": {
"r": 250,
"g": 247,
"b": 135
},
"hsl": {
"h": 58.435,
"s": 92,
"l": 75.49
},
"oklch": {
"l": 0.95557,
"c": 0.13461,
"h": 107.3
},
"luminance": 0.88595
}Semantic roles & 50–950 ramp
primary
#FAF787
secondary
#4D50D8
accent
#06E600
background
#FFFFFD
surface
#FFFFF7
border
#D7D7D0
text
#181710
muted
#868581