#C7C166#C7C166
#C7C166 is a light, moderate yellow. Relative luminance 0.512; OKLCH L 79.7% C 0.114 H 105.3°. Best body text is #000000 at 11.25:1 contrast (WCAG AA passes).
Color values
| HEX | #C7C166 |
|---|---|
| RGB | rgb(199, 193, 102) |
| HSL | hsl(56, 46%, 59%) |
| HSV | hsv(56, 49%, 78%) |
| CMYK | cmyk(0%, 3%, 48.7%, 22%) |
| CIE-LAB | lab(76.83, -10.35, 46.19) |
| CIE-LCH | lch(76.83, 47.34, 102.63°) |
| OKLab | oklab(79.66% -0.0301 0.1097) |
| OKLCH | oklch(79.66% 0.114 105.3) |
| XYZ | xyz(45.0225, 51.2426, 20.0870) |
| Luminance | 0.5124 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.46
Greenish Beige
#C9D179
ΔE00 5.17
Sand (survey)
#E2CA76
ΔE00 6.21
Greenish Tan
#BCCB7A
ΔE00 6.34
Light Olive
#ACBF69
ΔE00 6.97
Puke Yellow
#C2BE0E
ΔE00 7.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C7C166 #666CC7
analogous
#C79166 #C7C166 #9DC766
triadic
#C7C166 #66C7C1 #C166C7
tetradic
#C7C166 #66C791 #666CC7 #C7669D
square
#C7C166 #66C791 #666CC7 #C7669D
split-complementary
#C7C166 #669DC7 #9166C7
monochromatic
#837E30 #B0A940 #C7C166 #D7D393 #E8E5C0
Accessibility & contrast
On white
1.87
#C7C166 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.25
#C7C166 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C7C166
11.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C7C166 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C7C166 | 1.00 | 1.87 | 11.25 | 11.25 |
| #FFFFFF | 1.87 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFBB5E
Deuteranopia (green-blind)
#D1C06A
Tritanopia (blue-blind)
#D3B7AC
Achromatopsia (no color)
#BEBEBE
Design tokens & code
CSS
--color: #c7c166; /* rgb */ color: rgb(199, 193, 102); /* oklch */ color: oklch(79.7% 0.114 105.3);
Tailwind
colors: {
custom: {
50: '#dad394',
500: '#c7c166',
950: '#000000',
},
}SCSS
$custom: #c7c166; $custom-light: #dad394; $custom-dark: #000000;
JSON
{
"hex": "#c7c166",
"rgb": {
"r": 199,
"g": 193,
"b": 102
},
"hsl": {
"h": 56.289,
"s": 46.411,
"l": 59.02
},
"oklch": {
"l": 0.79663,
"c": 0.11379,
"h": 105.3
},
"luminance": 0.51241
}Semantic roles & 50–950 ramp
primary
#C7C166
secondary
#474B8B
accent
#5AD652
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F