#AFBA28#AFBA28
#AFBA28 is a light, vivid yellow. Relative luminance 0.444; OKLCH L 75.6% C 0.159 H 114.1°. Best body text is #000000 at 9.88:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBA28 |
|---|---|
| RGB | rgb(175, 186, 40) |
| HSL | hsl(65, 65%, 44%) |
| HSV | hsv(65, 78%, 73%) |
| CMYK | cmyk(5.9%, 0%, 78.5%, 27.1%) |
| CIE-LAB | lab(72.49, -20.91, 66.43) |
| CIE-LCH | lch(72.49, 69.64, 107.47°) |
| OKLab | oklab(75.57% -0.0647 0.1448) |
| OKLCH | oklch(75.57% 0.159 114.1) |
| XYZ | xyz(35.6222, 44.3857, 8.6979) |
| Luminance | 0.4439 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 1.46
Mustard Green
#A8B504
ΔE00 1.97
Bile
#B5C306
ΔE00 3.01
Baby Puke Green
#B6C406
ΔE00 3.25
Pea
#A4BF20
ΔE00 3.34
Gross Green
#A0BF16
ΔE00 4.03
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBA28 #3328BA
analogous
#BA7C28 #AFBA28 #66BA28
triadic
#AFBA28 #28AFBA #BA28AF
tetradic
#AFBA28 #28BA7C #3328BA #BA2866
square
#AFBA28 #28BA7C #3328BA #BA2866
split-complementary
#AFBA28 #2866BA #7C28BA
monochromatic
#505512 #80881D #AFBA28 #CDD848 #DBE27A
Accessibility & contrast
On white
2.13
#AFBA28 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.88
#AFBA28 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBA28
9.88:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBA28 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBA28 | 1.00 | 2.13 | 9.88 | 9.88 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.88 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.88 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C8B100
Deuteranopia (green-blind)
#C8B336
Tritanopia (blue-blind)
#BBAF9F
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #afba28; /* rgb */ color: rgb(175, 186, 40); /* oklch */ color: oklch(75.6% 0.159 114.1);
Tailwind
colors: {
custom: {
50: '#cbce6f',
500: '#afba28',
950: '#000000',
},
}SCSS
$custom: #afba28; $custom-light: #cbce6f; $custom-dark: #000000;
JSON
{
"hex": "#afba28",
"rgb": {
"r": 175,
"g": 186,
"b": 40
},
"hsl": {
"h": 64.521,
"s": 64.602,
"l": 44.314
},
"oklch": {
"l": 0.75565,
"c": 0.1586,
"h": 114.1
},
"luminance": 0.44385
}Semantic roles & 50–950 ramp
primary
#AFBA28
secondary
#7A73CA
accent
#40E84D
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141308
muted
#82827B