#C5C162#C5C162
#C5C162 is a light, moderate yellow. Relative luminance 0.509; OKLCH L 79.4% C 0.118 H 106.6°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).
Color values
| HEX | #C5C162 |
|---|---|
| RGB | rgb(197, 193, 98) |
| HSL | hsl(58, 46%, 58%) |
| HSV | hsv(58, 50%, 77%) |
| CMYK | cmyk(0%, 2%, 50.3%, 22.7%) |
| CIE-LAB | lab(76.61, -11.53, 47.83) |
| CIE-LCH | lch(76.61, 49.20, 103.55°) |
| OKLab | oklab(79.44% -0.0337 0.113) |
| OKLCH | oklch(79.44% 0.118 106.6) |
| XYZ | xyz(44.3016, 50.8933, 19.0426) |
| Luminance | 0.5089 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Darkkhaki
#BDB76B
ΔE00 3.82
Greenish Beige
#C9D179
ΔE00 5.04
Greenish Tan
#BCCB7A
ΔE00 6.18
Light Olive
#ACBF69
ΔE00 6.60
Sand (survey)
#E2CA76
ΔE00 6.85
Puke Yellow
#C2BE0E
ΔE00 7.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C5C162 #6266C5
analogous
#C58F62 #C5C162 #97C562
triadic
#C5C162 #62C5C1 #C162C5
tetradic
#C5C162 #62C58F #6266C5 #C56297
square
#C5C162 #62C58F #6266C5 #C56297
split-complementary
#C5C162 #6297C5 #8F62C5
monochromatic
#7E7B2F #ABA63F #C5C162 #D6D38F #E6E4BB
Accessibility & contrast
On white
1.88
#C5C162 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
11.18
#C5C162 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C5C162
11.18:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C5C162 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C5C162 | 1.00 | 1.88 | 11.18 | 11.18 |
| #FFFFFF | 1.88 | 1.00 | 21.00 | 21.00 |
| #000000 | 11.18 | 21.00 | 1.00 | 1.00 |
| ##000000 | 11.18 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CFBB59
Deuteranopia (green-blind)
#D1BF67
Tritanopia (blue-blind)
#D1B6AB
Achromatopsia (no color)
#BDBDBD
Design tokens & code
CSS
--color: #c5c162; /* rgb */ color: rgb(197, 193, 98); /* oklch */ color: oklch(79.4% 0.118 106.6);
Tailwind
colors: {
custom: {
50: '#d8d391',
500: '#c5c162',
950: '#000000',
},
}SCSS
$custom: #c5c162; $custom-light: #d8d391; $custom-dark: #000000;
JSON
{
"hex": "#c5c162",
"rgb": {
"r": 197,
"g": 193,
"b": 98
},
"hsl": {
"h": 57.576,
"s": 46.047,
"l": 57.843
},
"oklch": {
"l": 0.7944,
"c": 0.11794,
"h": 106.6
},
"luminance": 0.50892
}Semantic roles & 50–950 ramp
primary
#C5C162
secondary
#454786
accent
#57D652
background
#FEFEFC
surface
#FCFBF4
border
#D5D4CE
text
#15140D
muted
#84837F