#CFAB3F#CFAB3F
#CFAB3F is a light, vivid yellow. Relative luminance 0.427; OKLCH L 75.4% C 0.130 H 90.2°. Best body text is #000000 at 9.55:1 contrast (WCAG AA passes).
Color values
| HEX | #CFAB3F |
|---|---|
| RGB | rgb(207, 171, 63) |
| HSL | hsl(45, 60%, 53%) |
| HSV | hsv(45, 70%, 81%) |
| CMYK | cmyk(0%, 17.4%, 69.6%, 18.8%) |
| CIE-LAB | lab(71.39, 1.72, 58.13) |
| CIE-LCH | lch(71.39, 58.16, 88.30°) |
| OKLab | oklab(75.4% -0.0004 0.1302) |
| OKLCH | oklch(75.4% 0.13 90.2) |
| XYZ | xyz(41.1945, 42.7526, 10.7840) |
| Luminance | 0.4275 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.74
Burnt Yellow
#D5AB09
ΔE00 3.92
Desert
#CCAD60
ΔE00 4.52
Goldenrod
#DAA520
ΔE00 4.78
Yellow Ochre
#CB9D06
ΔE00 5.03
Gold (survey)
#DBB40C
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFAB3F #3F63CF
analogous
#CF633F #CFAB3F #ABCF3F
triadic
#CFAB3F #3FCFAB #AB3FCF
tetradic
#CFAB3F #3FCF63 #3F63CF #CF3FAB
square
#CFAB3F #3FCF63 #3F63CF #CF3FAB
split-complementary
#CFAB3F #3FABCF #633FCF
monochromatic
#76601E #A7882A #CFAB3F #DBC070 #E7D6A1
Accessibility & contrast
On white
2.20
#CFAB3F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.55
#CFAB3F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFAB3F
9.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFAB3F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFAB3F | 1.00 | 2.20 | 9.55 | 9.55 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA931
Deuteranopia (green-blind)
#C7B344
Tritanopia (blue-blind)
#E09D95
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #cfab3f; /* rgb */ color: rgb(207, 171, 63); /* oklch */ color: oklch(75.4% 0.130 90.2);
Tailwind
colors: {
custom: {
50: '#e2c37a',
500: '#cfab3f',
950: '#000000',
},
}SCSS
$custom: #cfab3f; $custom-light: #e2c37a; $custom-dark: #000000;
JSON
{
"hex": "#cfab3f",
"rgb": {
"r": 207,
"g": 171,
"b": 63
},
"hsl": {
"h": 45,
"s": 60,
"l": 52.941
},
"oklch": {
"l": 0.75404,
"c": 0.13021,
"h": 90.2
},
"luminance": 0.4275
}Semantic roles & 50–950 ramp
primary
#CFAB3F
secondary
#96A5D4
accent
#6CE345
background
#FEFBF7
surface
#FDF7EE
border
#D5D0C9
text
#16120A
muted
#84817C