#C7A126#C7A126
#C7A126 is a light, vivid yellow. Relative luminance 0.378; OKLCH L 72.4% C 0.138 H 90.2°. Best body text is #000000 at 8.55:1 contrast (WCAG AA passes).
Color values
| HEX | #C7A126 |
|---|---|
| RGB | rgb(199, 161, 38) |
| HSL | hsl(46, 68%, 46%) |
| HSV | hsv(46, 81%, 78%) |
| CMYK | cmyk(0%, 19.1%, 80.9%, 22%) |
| CIE-LAB | lab(67.85, 2.49, 63.72) |
| CIE-LCH | lch(67.85, 63.77, 87.76°) |
| OKLab | oklab(72.39% -0.0004 0.1375) |
| OKLCH | oklch(72.39% 0.138 90.2) |
| XYZ | xyz(36.6502, 37.7742, 7.1941) |
| Luminance | 0.3777 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocre
#C69C04
ΔE00 2.06
Ocher
#BF9B0C
ΔE00 2.29
Yellow Ochre
#CB9D06
ΔE00 2.50
Burnt Yellow
#D5AB09
ΔE00 3.86
Yellow Brown
#B79400
ΔE00 4.33
Goldenrod
#DAA520
ΔE00 4.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C7A126 #264CC7
analogous
#C75126 #C7A126 #9CC726
triadic
#C7A126 #26C7A1 #A126C7
tetradic
#C7A126 #26C751 #264CC7 #C7269C
square
#C7A126 #26C751 #264CC7 #C7269C
split-complementary
#C7A126 #269CC7 #5126C7
monochromatic
#604E12 #94771C #C7A126 #DDBB4D #E7CF81
Accessibility & contrast
On white
2.45
#C7A126 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.55
#C7A126 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C7A126
8.55:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C7A126 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C7A126 | 1.00 | 2.45 | 8.55 | 8.55 |
| #FFFFFF | 2.45 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.55 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.55 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B49F03
Deuteranopia (green-blind)
#BEAA2E
Tritanopia (blue-blind)
#D8938A
Achromatopsia (no color)
#A5A5A5
Design tokens & code
CSS
--color: #c7a126; /* rgb */ color: rgb(199, 161, 38); /* oklch */ color: oklch(72.4% 0.138 90.2);
Tailwind
colors: {
custom: {
50: '#ddbc6c',
500: '#c7a126',
950: '#000000',
},
}SCSS
$custom: #c7a126; $custom-light: #ddbc6c; $custom-dark: #000000;
JSON
{
"hex": "#c7a126",
"rgb": {
"r": 199,
"g": 161,
"b": 38
},
"hsl": {
"h": 45.839,
"s": 67.932,
"l": 46.471
},
"oklch": {
"l": 0.72385,
"c": 0.1375,
"h": 90.2
},
"luminance": 0.37772
}Semantic roles & 50–950 ramp
primary
#C7A126
secondary
#798ECF
accent
#66EB3D
background
#FEFBF6
surface
#FCF6EC
border
#D5D0C7
text
#161107
muted
#84807A