#CFB342#CFB342
#CFB342 is a light, vivid yellow. Relative luminance 0.459; OKLCH L 77.1% C 0.133 H 95.0°. Best body text is #000000 at 10.18:1 contrast (WCAG AA passes).
Color values
| HEX | #CFB342 |
|---|---|
| RGB | rgb(207, 179, 66) |
| HSL | hsl(48, 59%, 54%) |
| HSV | hsv(48, 68%, 81%) |
| CMYK | cmyk(0%, 13.5%, 68.1%, 18.8%) |
| CIE-LAB | lab(73.48, -2.34, 59.04) |
| CIE-LCH | lch(73.48, 59.09, 92.27°) |
| OKLab | oklab(77.07% -0.0117 0.1327) |
| OKLCH | oklch(77.07% 0.133 95) |
| XYZ | xyz(42.8377, 45.9012, 11.7566) |
| Luminance | 0.4590 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard
#DBB42C
ΔE00 3.56
Brownish Yellow
#C9B003
ΔE00 4.11
Mustard (survey)
#CEB301
ΔE00 4.13
Dark Yellow
#D5B60A
ΔE00 4.17
Gold (survey)
#DBB40C
ΔE00 4.63
Burnt Yellow
#D5AB09
ΔE00 4.98
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFB342 #425ECF
analogous
#CF6C42 #CFB342 #A4CF42
triadic
#CFB342 #42CFB3 #B342CF
tetradic
#CFB342 #42CF6C #425ECF #CF42A4
square
#CFB342 #42CF6C #425ECF #CF42A4
split-complementary
#CFB342 #42A4CF #6C42CF
monochromatic
#78661F #A9902B #CFB342 #DBC773 #E8DAA4
Accessibility & contrast
On white
2.06
#CFB342 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.18
#CFB342 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFB342
10.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFB342 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFB342 | 1.00 | 2.06 | 10.18 | 10.18 |
| #FFFFFF | 2.06 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AF33
Deuteranopia (green-blind)
#CCB848
Tritanopia (blue-blind)
#DFA59C
Achromatopsia (no color)
#B4B4B4
Design tokens & code
CSS
--color: #cfb342; /* rgb */ color: rgb(207, 179, 66); /* oklch */ color: oklch(77.1% 0.133 95.0);
Tailwind
colors: {
custom: {
50: '#e1c97c',
500: '#cfb342',
950: '#000000',
},
}SCSS
$custom: #cfb342; $custom-light: #e1c97c; $custom-dark: #000000;
JSON
{
"hex": "#cfb342",
"rgb": {
"r": 207,
"g": 179,
"b": 66
},
"hsl": {
"h": 48.085,
"s": 59.494,
"l": 53.529
},
"oklch": {
"l": 0.77065,
"c": 0.13316,
"h": 95
},
"luminance": 0.45899
}Semantic roles & 50–950 ramp
primary
#CFB342
secondary
#98A4D5
accent
#64E345
background
#FEFCF7
surface
#FDF8EE
border
#D5D1C9
text
#16130A
muted
#84827C