#C0AF2F#C0AF2F
#C0AF2F is a light, vivid yellow. Relative luminance 0.421; OKLCH L 74.7% C 0.142 H 101.4°. Best body text is #000000 at 9.41:1 contrast (WCAG AA passes).
Color values
| HEX | #C0AF2F |
|---|---|
| RGB | rgb(192, 175, 47) |
| HSL | hsl(53, 61%, 47%) |
| HSV | hsv(53, 76%, 75%) |
| CMYK | cmyk(0%, 8.9%, 75.5%, 24.7%) |
| CIE-LAB | lab(70.92, -7.67, 63.30) |
| CIE-LCH | lch(70.92, 63.76, 96.91°) |
| OKLab | oklab(74.67% -0.028 0.1388) |
| OKLCH | oklch(74.67% 0.142 101.4) |
| XYZ | xyz(37.5831, 42.0734, 8.8301) |
| Luminance | 0.4207 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Muddy Yellow
#BFAC05
ΔE00 2.29
Brownish Yellow
#C9B003
ΔE00 3.29
Olive Yellow
#C2B709
ΔE00 3.51
Mustard (survey)
#CEB301
ΔE00 4.06
Mustard Yellow
#D2BD0A
ΔE00 5.05
Dark Yellow
#D5B60A
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#C0AF2F #2F40C0
analogous
#C0672F #C0AF2F #88C02F
triadic
#C0AF2F #2FC0AF #AF2FC0
tetradic
#C0AF2F #2FC067 #2F40C0 #C02F88
square
#C0AF2F #2FC067 #2F40C0 #C02F88
split-complementary
#C0AF2F #2F88C0 #672FC0
monochromatic
#5E5517 #8F8223 #C0AF2F #D6C756 #E2D788
Accessibility & contrast
On white
2.23
#C0AF2F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.41
#C0AF2F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #C0AF2F
9.41:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##C0AF2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##C0AF2F | 1.00 | 2.23 | 9.41 | 9.41 |
| #FFFFFF | 2.23 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.41 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.41 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C0AA14
Deuteranopia (green-blind)
#C5B138
Tritanopia (blue-blind)
#CFA297
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #c0af2f; /* rgb */ color: rgb(192, 175, 47); /* oklch */ color: oklch(74.7% 0.142 101.4);
Tailwind
colors: {
custom: {
50: '#d7c671',
500: '#c0af2f',
950: '#000000',
},
}SCSS
$custom: #c0af2f; $custom-light: #d7c671; $custom-dark: #000000;
JSON
{
"hex": "#c0af2f",
"rgb": {
"r": 192,
"g": 175,
"b": 47
},
"hsl": {
"h": 52.966,
"s": 60.669,
"l": 46.863
},
"oklch": {
"l": 0.74671,
"c": 0.14155,
"h": 101.4
},
"luminance": 0.42072
}Semantic roles & 50–950 ramp
primary
#C0AF2F
secondary
#7F88CB
accent
#57E444
background
#FDFCF7
surface
#FBF8ED
border
#D4D1C8
text
#151308
muted
#83827B