#CFC278#CFC278
#CFC278 is a light, moderate yellow. Relative luminance 0.532; OKLCH L 80.8% C 0.096 H 99.5°. Best body text is #000000 at 11.64:1 contrast (WCAG AA passes).
Color values
| HEX | #CFC278 |
|---|---|
| RGB | rgb(207, 194, 120) |
| HSL | hsl(51, 48%, 64%) |
| HSV | hsv(51, 42%, 81%) |
| CMYK | cmyk(0%, 6.3%, 42%, 18.8%) |
| CIE-LAB | lab(78.00, -5.84, 38.81) |
| CIE-LCH | lch(78.00, 39.25, 98.56°) |
| OKLab | oklab(80.83% -0.0158 0.0944) |
| OKLCH | oklch(80.83% 0.096 99.5) |
| XYZ | xyz(48.4151, 53.2065, 25.4852) |
| Luminance | 0.5321 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.90
Sand (survey)
#E2CA76
ΔE00 4.24
Sand
#C2B280
ΔE00 6.34
Greenish Beige
#C9D179
ΔE00 6.63
Tan (survey)
#D1B26F
ΔE00 6.79
Desert
#CCAD60
ΔE00 7.26
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#CFC278 #7885CF
analogous
#CF9778 #CFC278 #B1CF78
triadic
#CFC278 #78CFC2 #C278CF
tetradic
#CFC278 #78CF97 #7885CF #CF78B1
square
#CFC278 #78CF97 #7885CF #CF78B1
split-complementary
#CFC278 #78B1CF #9778CF
monochromatic
#978836 #BFAE4B #CFC278 #DFD6A5 #EFEBD2
Accessibility & contrast
On white
1.80
#CFC278 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.64
#CFC278 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #CFC278
11.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##CFC278 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##CFC278 | 1.00 | 1.80 | 11.64 | 11.64 |
| #FFFFFF | 1.80 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFBE72
Deuteranopia (green-blind)
#D3C37B
Tritanopia (blue-blind)
#DBB8B0
Achromatopsia (no color)
#C1C1C1
Design tokens & code
CSS
--color: #cfc278; /* rgb */ color: rgb(207, 194, 120); /* oklch */ color: oklch(80.8% 0.096 99.5);
Tailwind
colors: {
custom: {
50: '#dfd4a0',
500: '#cfc278',
950: '#000000',
},
}SCSS
$custom: #cfc278; $custom-light: #dfd4a0; $custom-dark: #000000;
JSON
{
"hex": "#cfc278",
"rgb": {
"r": 207,
"g": 194,
"b": 120
},
"hsl": {
"h": 51.034,
"s": 47.541,
"l": 64.118
},
"oklch": {
"l": 0.8083,
"c": 0.09571,
"h": 99.5
},
"luminance": 0.53205
}Semantic roles & 50–950 ramp
primary
#CFC278
secondary
#4E5A9D
accent
#40BB2B
background
#FEFEFC
surface
#FCFBF5
border
#D5D4CF
text
#15140F
muted
#848380