#A6AF27#A6AF27
#A6AF27 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.3% C 0.150 H 113.5°. Best body text is #000000 at 8.78:1 contrast (WCAG AA passes).
Color values
| HEX | #A6AF27 |
|---|---|
| RGB | rgb(166, 175, 39) |
| HSL | hsl(64, 64%, 42%) |
| HSV | hsv(64, 78%, 69%) |
| CMYK | cmyk(5.1%, 0%, 77.7%, 31.4%) |
| CIE-LAB | lab(68.69, -19.31, 63.04) |
| CIE-LCH | lch(68.69, 65.93, 107.03°) |
| OKLab | oklab(72.35% -0.0599 0.1377) |
| OKLCH | oklch(72.35% 0.15 113.5) |
| XYZ | xyz(31.4231, 38.9141, 7.7749) |
| Luminance | 0.3891 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.53
Puke Green
#9AAE07
ΔE00 2.68
Vomit
#A2A415
ΔE00 3.44
Barf Green
#94AC02
ΔE00 3.68
Puke
#A5A502
ΔE00 3.74
Snot
#ACBB0D
ΔE00 3.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A6AF27 #3027AF
analogous
#AF7427 #A6AF27 #62AF27
triadic
#A6AF27 #27A6AF #AF27A6
tetradic
#A6AF27 #27AF74 #3027AF #AF2762
square
#A6AF27 #27AF74 #3027AF #AF2762
split-complementary
#A6AF27 #2762AF #7427AF
monochromatic
#474B11 #777D1C #A6AF27 #CAD43F #D8DF71
Accessibility & contrast
On white
2.39
#A6AF27 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.78
#A6AF27 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A6AF27
8.78:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A6AF27 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A6AF27 | 1.00 | 2.39 | 8.78 | 8.78 |
| #FFFFFF | 2.39 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.78 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.78 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA600
Deuteranopia (green-blind)
#BCA933
Tritanopia (blue-blind)
#B1A496
Achromatopsia (no color)
#A8A8A8
Design tokens & code
CSS
--color: #a6af27; /* rgb */ color: rgb(166, 175, 39); /* oklch */ color: oklch(72.3% 0.150 113.5);
Tailwind
colors: {
custom: {
50: '#c4c66d',
500: '#a6af27',
950: '#000000',
},
}SCSS
$custom: #a6af27; $custom-light: #c4c66d; $custom-dark: #000000;
JSON
{
"hex": "#a6af27",
"rgb": {
"r": 166,
"g": 175,
"b": 39
},
"hsl": {
"h": 63.971,
"s": 63.551,
"l": 41.961
},
"oklch": {
"l": 0.72347,
"c": 0.15019,
"h": 113.5
},
"luminance": 0.38913
}Semantic roles & 50–950 ramp
primary
#A6AF27
secondary
#716BC6
accent
#41E74C
background
#FCFCF6
surface
#F8F8EC
border
#D1D1C7
text
#131308
muted
#82827A