#A6A31F#A6A31F
#A6A31F is a light, vivid yellow. Relative luminance 0.344; OKLCH L 69.6% C 0.142 H 108.2°. Best body text is #000000 at 7.88:1 contrast (WCAG AA passes).
Color values
| HEX | #A6A31F |
|---|---|
| RGB | rgb(166, 163, 31) |
| HSL | hsl(59, 69%, 39%) |
| HSV | hsv(59, 81%, 65%) |
| CMYK | cmyk(0%, 1.8%, 81.3%, 34.9%) |
| CIE-LAB | lab(65.28, -13.46, 62.36) |
| CIE-LCH | lch(65.28, 63.79, 102.18°) |
| OKLab | oklab(69.61% -0.0443 0.1348) |
| OKLCH | oklch(69.61% 0.142 108.2) |
| XYZ | xyz(29.0716, 34.4013, 6.4048) |
| Luminance | 0.3440 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 1.34
Puke
#A5A502
ΔE00 1.58
Pea Soup
#929901
ΔE00 4.52
Pea Soup Green
#94A617
ΔE00 5.11
Baby Poop Green
#8F9805
ΔE00 5.17
Puke Green
#9AAE07
ΔE00 5.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A6A31F #1F22A6
analogous
#A65F1F #A6A31F #65A61F
triadic
#A6A31F #1FA6A3 #A31FA6
tetradic
#A6A31F #1FA65F #1F22A6 #A61F65
square
#A6A31F #1FA65F #1F22A6 #A61F65
split-complementary
#A6A31F #1F65A6 #5F1FA6
monochromatic
#3F3E0C #727015 #A6A31F #D7D42B #E1DE5E
Accessibility & contrast
On white
2.66
#A6A31F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
7.88
#A6A31F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A6A31F
7.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A6A31F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A6A31F | 1.00 | 2.66 | 7.88 | 7.88 |
| #FFFFFF | 2.66 | 1.00 | 21.00 | 21.00 |
| #000000 | 7.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 7.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19C00
Deuteranopia (green-blind)
#B3A02B
Tritanopia (blue-blind)
#B3988B
Achromatopsia (no color)
#9E9E9E
Design tokens & code
CSS
--color: #a6a31f; /* rgb */ color: rgb(166, 163, 31); /* oklch */ color: oklch(69.6% 0.142 108.2);
Tailwind
colors: {
custom: {
50: '#c4bd68',
500: '#a6a31f',
950: '#000000',
},
}SCSS
$custom: #a6a31f; $custom-light: #c4bd68; $custom-dark: #000000;
JSON
{
"hex": "#a6a31f",
"rgb": {
"r": 166,
"g": 163,
"b": 31
},
"hsl": {
"h": 58.667,
"s": 68.528,
"l": 38.627
},
"oklch": {
"l": 0.69608,
"c": 0.1419,
"h": 108.2
},
"luminance": 0.344
}Semantic roles & 50–950 ramp
primary
#A6A31F
secondary
#5B5EC5
accent
#40EB3C
background
#FCFBF6
surface
#F8F6EB
border
#D1D0C6
text
#131207
muted
#82817A