#A7B31B#A7B31B
#A7B31B is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.3% C 0.159 H 114.6°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).
Color values
| HEX | #A7B31B |
|---|---|
| RGB | rgb(167, 179, 27) |
| HSL | hsl(65, 74%, 40%) |
| HSV | hsv(65, 85%, 70%) |
| CMYK | cmyk(6.7%, 0%, 84.9%, 29.8%) |
| CIE-LAB | lab(69.85, -21.28, 67.28) |
| CIE-LCH | lch(69.85, 70.57, 107.55°) |
| OKLab | oklab(73.28% -0.0662 0.1447) |
| OKLCH | oklch(73.28% 0.159 114.6) |
| XYZ | xyz(32.2553, 40.5355, 7.1617) |
| Luminance | 0.4053 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.09
Snot
#ACBB0D
ΔE00 2.34
Puke Green
#9AAE07
ΔE00 2.53
Barf Green
#94AC02
ΔE00 3.70
Booger Green
#96B403
ΔE00 3.73
Sick Green
#9DB92C
ΔE00 3.97
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A7B31B #271BB3
analogous
#B3731B #A7B31B #5BB31B
triadic
#A7B31B #1BA7B3 #B31BA7
tetradic
#A7B31B #1BB373 #271BB3 #B31B5B
square
#A7B31B #1BB373 #271BB3 #B31B5B
split-complementary
#A7B31B #1B5BB3 #731BB3
monochromatic
#44490B #757E13 #A7B31B #D1DF2C #DDE761
Accessibility & contrast
On white
2.31
#A7B31B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.11
#A7B31B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A7B31B
9.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A7B31B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A7B31B | 1.00 | 2.31 | 9.11 | 9.11 |
| #FFFFFF | 2.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C0AC2C
Tritanopia (blue-blind)
#B3A899
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #a7b31b; /* rgb */ color: rgb(167, 179, 27); /* oklch */ color: oklch(73.3% 0.159 114.6);
Tailwind
colors: {
custom: {
50: '#c5c969',
500: '#a7b31b',
950: '#000000',
},
}SCSS
$custom: #a7b31b; $custom-light: #c5c969; $custom-dark: #000000;
JSON
{
"hex": "#a7b31b",
"rgb": {
"r": 167,
"g": 179,
"b": 27
},
"hsl": {
"h": 64.737,
"s": 73.786,
"l": 40.392
},
"oklch": {
"l": 0.73281,
"c": 0.15916,
"h": 114.6
},
"luminance": 0.40535
}Semantic roles & 50–950 ramp
primary
#A7B31B
secondary
#675ECC
accent
#37F046
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#131307
muted
#82827A