#AFBB21#AFBB21
#AFBB21 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.8% C 0.163 H 114.4°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBB21 |
|---|---|
| RGB | rgb(175, 187, 33) |
| HSL | hsl(65, 70%, 43%) |
| HSV | hsv(65, 82%, 73%) |
| CMYK | cmyk(6.4%, 0%, 82.4%, 26.7%) |
| CIE-LAB | lab(72.74, -21.65, 68.55) |
| CIE-LCH | lch(72.74, 71.88, 107.53°) |
| OKLab | oklab(75.76% -0.0672 0.1481) |
| OKLCH | oklch(75.76% 0.163 114.4) |
| XYZ | xyz(35.7252, 44.7651, 8.1971) |
| Luminance | 0.4476 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 0.96
Mustard Green
#A8B504
ΔE00 1.87
Bile
#B5C306
ΔE00 2.52
Baby Puke Green
#B6C406
ΔE00 2.76
Pea
#A4BF20
ΔE00 3.17
Gross Green
#A0BF16
ΔE00 3.83
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBB21 #2D21BB
analogous
#BB7A21 #AFBB21 #62BB21
triadic
#AFBB21 #21AFBB #BB21AF
tetradic
#AFBB21 #21BB7A #2D21BB #BB2162
square
#AFBB21 #21BB7A #2D21BB #BB2162
split-complementary
#AFBB21 #2162BB #7A21BB
monochromatic
#4E530F #7E8718 #AFBB21 #D0DD3D #DDE671
Accessibility & contrast
On white
2.11
#AFBB21 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.95
#AFBB21 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBB21
9.95:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBB21 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBB21 | 1.00 | 2.11 | 9.95 | 9.95 |
| #FFFFFF | 2.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.95 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.95 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#C9B431
Tritanopia (blue-blind)
#BBAFA0
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #afbb21; /* rgb */ color: rgb(175, 187, 33); /* oklch */ color: oklch(75.8% 0.163 114.4);
Tailwind
colors: {
custom: {
50: '#cbcf6d',
500: '#afbb21',
950: '#000000',
},
}SCSS
$custom: #afbb21; $custom-light: #cbcf6d; $custom-dark: #000000;
JSON
{
"hex": "#afbb21",
"rgb": {
"r": 175,
"g": 187,
"b": 33
},
"hsl": {
"h": 64.675,
"s": 70,
"l": 43.137
},
"oklch": {
"l": 0.75758,
"c": 0.16267,
"h": 114.4
},
"luminance": 0.44764
}Semantic roles & 50–950 ramp
primary
#AFBB21
secondary
#736BCC
accent
#3BED49
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141308
muted
#83827B