#AFBB28#AFBB28
#AFBB28 is a light, vivid yellow. Relative luminance 0.448; OKLCH L 75.8% C 0.160 H 114.4°. Best body text is #000000 at 9.96:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBB28 |
|---|---|
| RGB | rgb(175, 187, 40) |
| HSL | hsl(65, 65%, 45%) |
| HSV | hsv(65, 79%, 73%) |
| CMYK | cmyk(6.4%, 0%, 78.6%, 26.7%) |
| CIE-LAB | lab(72.77, -21.41, 66.68) |
| CIE-LCH | lch(72.77, 70.03, 107.80°) |
| OKLab | oklab(75.79% -0.0661 0.1453) |
| OKLCH | oklch(75.79% 0.16 114.4) |
| XYZ | xyz(35.8336, 44.8085, 8.7683) |
| Luminance | 0.4481 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 1.35
Mustard Green
#A8B504
ΔE00 2.11
Bile
#B5C306
ΔE00 2.81
Baby Puke Green
#B6C406
ΔE00 3.04
Pea
#A4BF20
ΔE00 3.09
Gross Green
#A0BF16
ΔE00 3.79
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBB28 #3428BB
analogous
#BB7E28 #AFBB28 #66BB28
triadic
#AFBB28 #28AFBB #BB28AF
tetradic
#AFBB28 #28BB7E #3428BB #BB2866
square
#AFBB28 #28BB7E #3428BB #BB2866
split-complementary
#AFBB28 #2866BB #7E28BB
monochromatic
#515612 #80891D #AFBB28 #CCD848 #DAE37B
Accessibility & contrast
On white
2.11
#AFBB28 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.96
#AFBB28 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBB28
9.96:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBB28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBB28 | 1.00 | 2.11 | 9.96 | 9.96 |
| #FFFFFF | 2.11 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.96 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.96 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C9B100
Deuteranopia (green-blind)
#C8B436
Tritanopia (blue-blind)
#BBB0A0
Achromatopsia (no color)
#B3B3B3
Design tokens & code
CSS
--color: #afbb28; /* rgb */ color: rgb(175, 187, 40); /* oklch */ color: oklch(75.8% 0.160 114.4);
Tailwind
colors: {
custom: {
50: '#cbcf6f',
500: '#afbb28',
950: '#000000',
},
}SCSS
$custom: #afbb28; $custom-light: #cbcf6f; $custom-dark: #000000;
JSON
{
"hex": "#afbb28",
"rgb": {
"r": 175,
"g": 187,
"b": 40
},
"hsl": {
"h": 64.898,
"s": 64.758,
"l": 44.51
},
"oklch": {
"l": 0.7579,
"c": 0.15964,
"h": 114.4
},
"luminance": 0.44808
}Semantic roles & 50–950 ramp
primary
#AFBB28
secondary
#7B74CB
accent
#40E84E
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B