#C7A226#C7A226
#C7A226 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.6% C 0.138 H 90.8°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).
Color values
| HEX | #C7A226 |
|---|---|
| RGB | rgb(199, 162, 38) |
| HSL | hsl(46, 68%, 46%) |
| HSV | hsv(46, 81%, 78%) |
| CMYK | cmyk(0%, 18.6%, 80.9%, 22%) |
| CIE-LAB | lab(68.11, 1.95, 63.95) |
| CIE-LCH | lch(68.11, 63.98, 88.25°) |
| OKLab | oklab(72.59% -0.0019 0.138) |
| OKLCH | oklch(72.59% 0.138 90.8) |
| XYZ | xyz(36.8256, 38.1251, 7.2526) |
| Luminance | 0.3812 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocre
#C69C04
ΔE00 2.31
Ocher
#BF9B0C
ΔE00 2.38
Yellow Ochre
#CB9D06
ΔE00 2.79
Burnt Yellow
#D5AB09
ΔE00 3.68
Yellow Brown
#B79400
ΔE00 4.48
Goldenrod
#DAA520
ΔE00 4.61
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C7A226 #264BC7
analogous
#C75226 #C7A226 #9CC726
triadic
#C7A226 #26C7A2 #A226C7
tetradic
#C7A226 #26C752 #264BC7 #C7269C
square
#C7A226 #26C752 #264BC7 #C7269C
split-complementary
#C7A226 #269CC7 #5226C7
monochromatic
#604E12 #94781C #C7A226 #DDBC4D #E7CF81
Accessibility & contrast
On white
2.43
#C7A226 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.62
#C7A226 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C7A226
8.62:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C7A226 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C7A226 | 1.00 | 2.43 | 8.62 | 8.62 |
| #FFFFFF | 2.43 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.62 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.62 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B5A003
Deuteranopia (green-blind)
#BEAA2E
Tritanopia (blue-blind)
#D8948B
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #c7a226; /* rgb */ color: rgb(199, 162, 38); /* oklch */ color: oklch(72.6% 0.138 90.8);
Tailwind
colors: {
custom: {
50: '#ddbd6c',
500: '#c7a226',
950: '#000000',
},
}SCSS
$custom: #c7a226; $custom-light: #ddbd6c; $custom-dark: #000000;
JSON
{
"hex": "#c7a226",
"rgb": {
"r": 199,
"g": 162,
"b": 38
},
"hsl": {
"h": 46.211,
"s": 67.932,
"l": 46.471
},
"oklch": {
"l": 0.72589,
"c": 0.13801,
"h": 90.8
},
"luminance": 0.38123
}Semantic roles & 50–950 ramp
primary
#C7A226
secondary
#798DCF
accent
#65EB3D
background
#FEFBF6
surface
#FCF6EC
border
#D5D0C7
text
#161207
muted
#84817A