#C5A731#C5A731
#C5A731 is a light, vivid yellow. Relative luminance 0.397; OKLCH L 73.5% C 0.135 H 94.1°. Best body text is #000000 at 8.95:1 contrast (WCAG AA passes).
Color values
| HEX | #C5A731 |
|---|---|
| RGB | rgb(197, 167, 49) |
| HSL | hsl(48, 60%, 48%) |
| HSV | hsv(48, 75%, 77%) |
| CMYK | cmyk(0%, 15.2%, 75.1%, 22.7%) |
| CIE-LAB | lab(69.28, -1.18, 61.21) |
| CIE-LCH | lch(69.28, 61.22, 91.10°) |
| OKLab | oklab(73.48% -0.0097 0.1345) |
| OKLCH | oklch(73.48% 0.135 94.1) |
| XYZ | xyz(37.4011, 39.7316, 8.6041) |
| Luminance | 0.3973 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Ocher
#BF9B0C
ΔE00 3.89
Brownish Yellow
#C9B003
ΔE00 4.29
Burnt Yellow
#D5AB09
ΔE00 4.31
Muddy Yellow
#BFAC05
ΔE00 4.43
Ocre
#C69C04
ΔE00 4.47
Mustard
#DBB42C
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C5A731 #314FC5
analogous
#C55D31 #C5A731 #99C531
triadic
#C5A731 #31C5A7 #A731C5
tetradic
#C5A731 #31C55D #314FC5 #C53199
square
#C5A731 #31C55D #314FC5 #C53199
split-complementary
#C5A731 #3199C5 #5D31C5
monochromatic
#635419 #947D25 #C5A731 #D7BE5D #E3D28E
Accessibility & contrast
On white
2.35
#C5A731 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.95
#C5A731 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C5A731
8.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C5A731 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C5A731 | 1.00 | 2.35 | 8.95 | 8.95 |
| #FFFFFF | 2.35 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A41C
Deuteranopia (green-blind)
#C1AD38
Tritanopia (blue-blind)
#D59990
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #c5a731; /* rgb */ color: rgb(197, 167, 49); /* oklch */ color: oklch(73.5% 0.135 94.1);
Tailwind
colors: {
custom: {
50: '#dbc072',
500: '#c5a731',
950: '#000000',
},
}SCSS
$custom: #c5a731; $custom-light: #dbc072; $custom-dark: #000000;
JSON
{
"hex": "#c5a731",
"rgb": {
"r": 197,
"g": 167,
"b": 49
},
"hsl": {
"h": 47.838,
"s": 60.163,
"l": 48.235
},
"oklch": {
"l": 0.73483,
"c": 0.13483,
"h": 94.1
},
"luminance": 0.3973
}Semantic roles & 50–950 ramp
primary
#C5A731
secondary
#8593CD
accent
#65E344
background
#FEFBF7
surface
#FCF7ED
border
#D5D0C8
text
#161208
muted
#84817B