#AFBB31#AFBB31
#AFBB31 is a light, vivid yellow. Relative luminance 0.449; OKLCH L 75.8% C 0.155 H 114.5°. Best body text is #000000 at 9.98:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBB31 |
|---|---|
| RGB | rgb(175, 187, 49) |
| HSL | hsl(65, 58%, 46%) |
| HSV | hsv(65, 74%, 73%) |
| CMYK | cmyk(6.4%, 0%, 73.8%, 26.7%) |
| CIE-LAB | lab(72.81, -21.03, 63.89) |
| CIE-LCH | lch(72.81, 67.26, 108.22°) |
| OKLab | oklab(75.84% -0.0643 0.141) |
| OKLCH | oklch(75.84% 0.155 114.5) |
| XYZ | xyz(36.0049, 44.8770, 9.6706) |
| Luminance | 0.4488 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.02
Mustard Green
#A8B504
ΔE00 2.60
Pea
#A4BF20
ΔE00 3.11
Bile
#B5C306
ΔE00 3.35
Baby Puke Green
#B6C406
ΔE00 3.56
Sick Green
#9DB92C
ΔE00 3.72
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBB31 #3D31BB
analogous
#BB8231 #AFBB31 #6ABB31
triadic
#AFBB31 #31AFBB #BB31AF
tetradic
#AFBB31 #31BB82 #3D31BB #BB316A
square
#AFBB31 #31BB82 #3D31BB #BB316A
split-complementary
#AFBB31 #316ABB #8231BB
monochromatic
#545A18 #828B24 #AFBB31 #C8D356 #D8E087
Accessibility & contrast
On white
2.11
#AFBB31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.98
#AFBB31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBB31
9.98:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBB31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBB31 | 1.00 | 2.11 | 9.98 | 9.98 |
| #FFFFFF | 2.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.98 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.98 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C9B213
Deuteranopia (green-blind)
#C8B43D
Tritanopia (blue-blind)
#BBB0A1
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #afbb31; /* rgb */ color: rgb(175, 187, 49); /* oklch */ color: oklch(75.8% 0.155 114.5);
Tailwind
colors: {
custom: {
50: '#cacf73',
500: '#afbb31',
950: '#000000',
},
}SCSS
$custom: #afbb31; $custom-light: #cacf73; $custom-dark: #000000;
JSON
{
"hex": "#afbb31",
"rgb": {
"r": 175,
"g": 187,
"b": 49
},
"hsl": {
"h": 65.217,
"s": 58.475,
"l": 46.275
},
"oklch": {
"l": 0.7584,
"c": 0.15496,
"h": 114.5
},
"luminance": 0.44876
}Semantic roles & 50–950 ramp
primary
#AFBB31
secondary
#857FC9
accent
#46E254
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B