#AFB52B#AFB52B
#AFB52B is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.152 H 112.1°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB52B |
|---|---|
| RGB | rgb(175, 181, 43) |
| HSL | hsl(63, 62%, 44%) |
| HSV | hsv(63, 76%, 71%) |
| CMYK | cmyk(3.3%, 0%, 76.2%, 29%) |
| CIE-LAB | lab(71.10, -18.29, 64.26) |
| CIE-LCH | lch(71.10, 66.81, 105.89°) |
| OKLab | oklab(74.46% -0.0572 0.1407) |
| OKLCH | oklch(74.46% 0.152 112.1) |
| XYZ | xyz(34.6403, 42.3370, 8.6321) |
| Luminance | 0.4234 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.18
Snot
#ACBB0D
ΔE00 2.72
Puke Green
#9AAE07
ΔE00 4.15
Bile
#B5C306
ΔE00 4.36
Baby Puke Green
#B6C406
ΔE00 4.59
Puke Yellow
#C2BE0E
ΔE00 4.67
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB52B #312BB5
analogous
#B5762B #AFB52B #6AB52B
triadic
#AFB52B #2BAFB5 #B52BAF
tetradic
#AFB52B #2BB576 #312BB5 #B52B6A
square
#AFB52B #2BB576 #312BB5 #B52B6A
split-complementary
#AFB52B #2B6AB5 #762BB5
monochromatic
#4F5214 #7F841F #AFB52B #CED449 #DBE07B
Accessibility & contrast
On white
2.22
#AFB52B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.47
#AFB52B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB52B
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB52B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB52B | 1.00 | 2.22 | 9.47 | 9.47 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AC05
Deuteranopia (green-blind)
#C4B037
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb52b; /* rgb */ color: rgb(175, 181, 43); /* oklch */ color: oklch(74.5% 0.152 112.1);
Tailwind
colors: {
custom: {
50: '#cbca70',
500: '#afb52b',
950: '#000000',
},
}SCSS
$custom: #afb52b; $custom-light: #cbca70; $custom-dark: #000000;
JSON
{
"hex": "#afb52b",
"rgb": {
"r": 175,
"g": 181,
"b": 43
},
"hsl": {
"h": 62.609,
"s": 61.607,
"l": 43.922
},
"oklch": {
"l": 0.74462,
"c": 0.1519,
"h": 112.1
},
"luminance": 0.42336
}Semantic roles & 50–950 ramp
primary
#AFB52B
secondary
#7874C8
accent
#43E54A
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B