#A8B31B#A8B31B
#A8B31B is a light, vivid yellow. Relative luminance 0.406; OKLCH L 73.4% C 0.159 H 114.2°. Best body text is #000000 at 9.13:1 contrast (WCAG AA passes).
Color values
| HEX | #A8B31B |
|---|---|
| RGB | rgb(168, 179, 27) |
| HSL | hsl(64, 74%, 40%) |
| HSV | hsv(64, 85%, 70%) |
| CMYK | cmyk(6.1%, 0%, 84.9%, 29.8%) |
| CIE-LAB | lab(69.93, -20.85, 67.38) |
| CIE-LCH | lch(69.93, 70.53, 107.20°) |
| OKLab | oklab(73.36% -0.0651 0.1449) |
| OKLCH | oklch(73.36% 0.159 114.2) |
| XYZ | xyz(32.4674, 40.6448, 7.1716) |
| Luminance | 0.4064 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.07
Snot
#ACBB0D
ΔE00 2.33
Puke Green
#9AAE07
ΔE00 2.73
Barf Green
#94AC02
ΔE00 3.90
Booger Green
#96B403
ΔE00 3.96
Pea
#A4BF20
ΔE00 4.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#A8B31B #261BB3
analogous
#B3721B #A8B31B #5CB31B
triadic
#A8B31B #1BA8B3 #B31BA8
tetradic
#A8B31B #1BB372 #261BB3 #B31B5C
square
#A8B31B #1BB372 #261BB3 #B31B5C
split-complementary
#A8B31B #1B5CB3 #721BB3
monochromatic
#44490B #767E13 #A8B31B #D2DF2C #DEE761
Accessibility & contrast
On white
2.30
#A8B31B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.13
#A8B31B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #A8B31B
9.13:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##A8B31B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##A8B31B | 1.00 | 2.30 | 9.13 | 9.13 |
| #FFFFFF | 2.30 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.13 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.13 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C1AA00
Deuteranopia (green-blind)
#C0AC2C
Tritanopia (blue-blind)
#B4A899
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #a8b31b; /* rgb */ color: rgb(168, 179, 27); /* oklch */ color: oklch(73.4% 0.159 114.2);
Tailwind
colors: {
custom: {
50: '#c6c969',
500: '#a8b31b',
950: '#000000',
},
}SCSS
$custom: #a8b31b; $custom-light: #c6c969; $custom-dark: #000000;
JSON
{
"hex": "#a8b31b",
"rgb": {
"r": 168,
"g": 179,
"b": 27
},
"hsl": {
"h": 64.342,
"s": 73.786,
"l": 40.392
},
"oklch": {
"l": 0.73362,
"c": 0.15884,
"h": 114.2
},
"luminance": 0.40644
}Semantic roles & 50–950 ramp
primary
#A8B31B
secondary
#665ECC
accent
#37F045
background
#FCFCF6
surface
#F9F8EC
border
#D2D1C7
text
#141307
muted
#82827A