#A8B731#A8B731
#A8B731 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.4% C 0.153 H 115.8°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #A8B731 |
|---|---|
| RGB | rgb(168, 183, 49) |
| HSL | hsl(67, 58%, 45%) |
| HSV | hsv(67, 73%, 72%) |
| CMYK | cmyk(8.2%, 0%, 73.2%, 28.2%) |
| CIE-LAB | lab(71.16, -22.00, 62.13) |
| CIE-LCH | lch(71.16, 65.91, 109.50°) |
| OKLab | oklab(74.38% -0.0666 0.1375) |
| OKLCH | oklch(74.38% 0.153 115.8) |
| XYZ | xyz(33.6372, 42.4141, 9.3199) |
| Luminance | 0.4241 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.60
Sick Green
#9DB92C
ΔE00 2.70
Snot
#ACBB0D
ΔE00 2.72
Pea
#A4BF20
ΔE00 3.05
Puke Green
#9AAE07
ΔE00 3.37
Booger
#9BB53C
ΔE00 3.39
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8B731 #4031B7
analogous
#B78331 #A8B731 #65B731
triadic
#A8B731 #31A8B7 #B731A8
tetradic
#A8B731 #31B783 #4031B7 #B73165
square
#A8B731 #31B783 #4031B7 #B73165
split-complementary
#A8B731 #3165B7 #8331B7
monochromatic
#4F5617 #7C8724 #A8B731 #C3D154 #D4DE84
Accessibility & contrast
On white
2.21
#A8B731 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.48
#A8B731 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8B731
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8B731 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8B731 | 1.00 | 2.21 | 9.48 | 9.48 |
| #FFFFFF | 2.21 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AD16
Deuteranopia (green-blind)
#C3AF3C
Tritanopia (blue-blind)
#B3AC9D
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #a8b731; /* rgb */ color: rgb(168, 183, 49); /* oklch */ color: oklch(74.4% 0.153 115.8);
Tailwind
colors: {
custom: {
50: '#c5cc73',
500: '#a8b731',
950: '#000000',
},
}SCSS
$custom: #a8b731; $custom-light: #c5cc73; $custom-dark: #000000;
JSON
{
"hex": "#a8b731",
"rgb": {
"r": 168,
"g": 183,
"b": 49
},
"hsl": {
"h": 66.716,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.7438,
"c": 0.15278,
"h": 115.8
},
"luminance": 0.42414
}Semantic roles & 50–950 ramp
primary
#A8B731
secondary
#857CC8
accent
#47E158
background
#FCFCF7
surface
#F8F8ED
border
#D1D1C8
text
#131309
muted
#82827B