#C2A840#C2A840
#C2A840 is a light, vivid yellow. Relative luminance 0.398; OKLCH L 73.5% C 0.125 H 95.0°. Best body text is #000000 at 8.97:1 contrast (WCAG AA passes).
Color values
| HEX | #C2A840 |
|---|---|
| RGB | rgb(194, 168, 64) |
| HSL | hsl(48, 52%, 51%) |
| HSV | hsv(48, 67%, 76%) |
| CMYK | cmyk(0%, 13.4%, 67%, 23.9%) |
| CIE-LAB | lab(69.36, -2.26, 55.22) |
| CIE-LCH | lch(69.36, 55.27, 92.35°) |
| OKLab | oklab(73.52% -0.0109 0.1247) |
| OKLCH | oklch(73.52% 0.125 95) |
| XYZ | xyz(37.1780, 39.8467, 10.5824) |
| Luminance | 0.3985 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Desert
#CCAD60
ΔE00 4.96
Muddy Yellow
#BFAC05
ΔE00 5.03
Ocher
#BF9B0C
ΔE00 5.18
Brownish Yellow
#C9B003
ΔE00 5.30
Sandy Brown
#C4A661
ΔE00 5.87
Mustard (survey)
#CEB301
ΔE00 5.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C2A840 #405AC2
analogous
#C26740 #C2A840 #9BC240
triadic
#C2A840 #40C2A8 #A840C2
tetradic
#C2A840 #40C267 #405AC2 #C2409B
square
#C2A840 #40C267 #405AC2 #C2409B
split-complementary
#C2A840 #409BC2 #6740C2
monochromatic
#675921 #958130 #C2A840 #D1BD6E #E0D29D
Accessibility & contrast
On white
2.34
#C2A840 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.97
#C2A840 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C2A840
8.97:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C2A840 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C2A840 | 1.00 | 2.34 | 8.97 | 8.97 |
| #FFFFFF | 2.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.97 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.97 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A533
Deuteranopia (green-blind)
#BFAD45
Tritanopia (blue-blind)
#D19B92
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #c2a840; /* rgb */ color: rgb(194, 168, 64); /* oklch */ color: oklch(73.5% 0.125 95.0);
Tailwind
colors: {
custom: {
50: '#d8c17a',
500: '#c2a840',
950: '#000000',
},
}SCSS
$custom: #c2a840; $custom-light: #d8c17a; $custom-dark: #000000;
JSON
{
"hex": "#c2a840",
"rgb": {
"r": 194,
"g": 168,
"b": 64
},
"hsl": {
"h": 48,
"s": 51.587,
"l": 50.588
},
"oklch": {
"l": 0.73515,
"c": 0.12513,
"h": 95
},
"luminance": 0.39845
}Semantic roles & 50–950 ramp
primary
#C2A840
secondary
#929ECC
accent
#69DB4D
background
#FDFBF7
surface
#FBF7EE
border
#D4D0C9
text
#151209
muted
#83817B