#CFC178#CFC178
#CFC178 is a light, moderate yellow. Relative luminance 0.528; OKLCH L 80.6% C 0.095 H 98.7°. Best body text is #000000 at 11.55:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC178 |
|---|---|
| RGB | rgb(207, 193, 120) |
| HSL | hsl(50, 48%, 64%) |
| HSV | hsv(50, 42%, 81%) |
| CMYK | cmyk(0%, 6.8%, 42%, 18.8%) |
| CIE-LAB | lab(77.73, -5.32, 38.48) |
| CIE-LCH | lch(77.73, 38.84, 97.88°) |
| OKLab | oklab(80.62% -0.0143 0.0936) |
| OKLCH | oklch(80.62% 0.095 98.7) |
| XYZ | xyz(48.1933, 52.7629, 25.4113) |
| Luminance | 0.5276 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.94
Sand (survey)
#E2CA76
ΔE00 4.21
Sand
#C2B280
ΔE00 6.02
Tan (survey)
#D1B26F
ΔE00 6.38
Desert
#CCAD60
ΔE00 6.90
Sandstone
#C9AE74
ΔE00 6.93
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC178 #7886CF
analogous
#CF9678 #CFC178 #B2CF78
triadic
#CFC178 #78CFC1 #C178CF
tetradic
#CFC178 #78CF96 #7886CF #CF78B2
square
#CFC178 #78CF96 #7886CF #CF78B2
split-complementary
#CFC178 #78B2CF #9678CF
monochromatic
#978736 #BFAC4B #CFC178 #DFD6A5 #EFEAD2
Accessibility & contrast
On white
1.82
#CFC178 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.55
#CFC178 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC178
11.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC178 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC178 | 1.00 | 1.82 | 11.55 | 11.55 |
| #FFFFFF | 1.82 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CEBD72
Deuteranopia (green-blind)
#D2C27B
Tritanopia (blue-blind)
#DBB7AF
Achromatopsia (no color)
#C0C0C0
Design tokens & code
CSS
--color: #cfc178; /* rgb */ color: rgb(207, 193, 120); /* oklch */ color: oklch(80.6% 0.095 98.7);
Tailwind
colors: {
custom: {
50: '#dfd3a0',
500: '#cfc178',
950: '#000000',
},
}SCSS
$custom: #cfc178; $custom-light: #dfd3a0; $custom-dark: #000000;
JSON
{
"hex": "#cfc178",
"rgb": {
"r": 207,
"g": 193,
"b": 120
},
"hsl": {
"h": 50.345,
"s": 47.541,
"l": 64.118
},
"oklch": {
"l": 0.80623,
"c": 0.09472,
"h": 98.7
},
"luminance": 0.52761
}Semantic roles & 50–950 ramp
primary
#CFC178
secondary
#4E5B9D
accent
#42BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380