#AFBA31#AFBA31
#AFBA31 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.6% C 0.154 H 114.1°. Best body text is #000000 at 9.89:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBA31 |
|---|---|
| RGB | rgb(175, 186, 49) |
| HSL | hsl(65, 58%, 46%) |
| HSV | hsv(65, 74%, 73%) |
| CMYK | cmyk(5.9%, 0%, 73.7%, 27.1%) |
| CIE-LAB | lab(72.53, -20.53, 63.62) |
| CIE-LCH | lch(72.53, 66.85, 107.88°) |
| OKLab | oklab(75.62% -0.0629 0.1404) |
| OKLCH | oklch(75.62% 0.154 114.1) |
| XYZ | xyz(35.7935, 44.4542, 9.6001) |
| Luminance | 0.4445 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.10
Mustard Green
#A8B504
ΔE00 2.49
Pea
#A4BF20
ΔE00 3.36
Bile
#B5C306
ΔE00 3.52
Baby Puke Green
#B6C406
ΔE00 3.74
Sick Green
#9DB92C
ΔE00 3.85
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBA31 #3C31BA
analogous
#BA8031 #AFBA31 #6ABA31
triadic
#AFBA31 #31AFBA #BA31AF
tetradic
#AFBA31 #31BA80 #3C31BA #BA316A
square
#AFBA31 #31BA80 #3C31BA #BA316A
split-complementary
#AFBA31 #316ABA #8031BA
monochromatic
#545917 #818A24 #AFBA31 #C8D256 #D8DF86
Accessibility & contrast
On white
2.12
#AFBA31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.89
#AFBA31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBA31
9.89:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBA31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBA31 | 1.00 | 2.12 | 9.89 | 9.89 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.89 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.89 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B114
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #afba31; /* rgb */ color: rgb(175, 186, 49); /* oklch */ color: oklch(75.6% 0.154 114.1);
Tailwind
colors: {
custom: {
50: '#cace73',
500: '#afba31',
950: '#000000',
},
}SCSS
$custom: #afba31; $custom-light: #cace73; $custom-dark: #000000;
JSON
{
"hex": "#afba31",
"rgb": {
"r": 175,
"g": 186,
"b": 49
},
"hsl": {
"h": 64.818,
"s": 58.298,
"l": 46.078
},
"oklch": {
"l": 0.75616,
"c": 0.15388,
"h": 114.1
},
"luminance": 0.44454
}Semantic roles & 50–950 ramp
primary
#AFBA31
secondary
#847EC9
accent
#46E253
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B