#AFB72A#AFB72A
#AFB72A is a light, vivid yellow. Relative luminance 0.431; OKLCH L 74.9% C 0.154 H 112.9°. Best body text is #000000 at 9.63:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB72A |
|---|---|
| RGB | rgb(175, 183, 42) |
| HSL | hsl(63, 63%, 44%) |
| HSV | hsv(63, 77%, 72%) |
| CMYK | cmyk(4.4%, 0%, 77%, 28.2%) |
| CIE-LAB | lab(71.66, -19.34, 65.08) |
| CIE-LCH | lch(71.66, 67.89, 106.55°) |
| OKLab | oklab(74.9% -0.0602 0.1423) |
| OKLCH | oklch(74.9% 0.154 112.9) |
| XYZ | xyz(35.0317, 43.1489, 8.6732) |
| Luminance | 0.4315 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 1.94
Snot
#ACBB0D
ΔE00 2.16
Bile
#B5C306
ΔE00 3.80
Baby Puke Green
#B6C406
ΔE00 4.03
Puke Green
#9AAE07
ΔE00 4.14
Pea
#A4BF20
ΔE00 4.15
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB72A #322AB7
analogous
#B7792A #AFB72A #69B72A
triadic
#AFB72A #2AAFB7 #B72AAF
tetradic
#AFB72A #2AB779 #322AB7 #B72A69
square
#AFB72A #2AB779 #322AB7 #B72A69
split-complementary
#AFB72A #2A69B7 #792AB7
monochromatic
#505313 #7F851F #AFB72A #CDD549 #DBE17B
Accessibility & contrast
On white
2.18
#AFB72A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.63
#AFB72A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB72A
9.63:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB72A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB72A | 1.00 | 2.18 | 9.63 | 9.63 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.63 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.63 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AE00
Deuteranopia (green-blind)
#C5B137
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb72a; /* rgb */ color: rgb(175, 183, 42); /* oklch */ color: oklch(74.9% 0.154 112.9);
Tailwind
colors: {
custom: {
50: '#cbcc70',
500: '#afb72a',
950: '#000000',
},
}SCSS
$custom: #afb72a; $custom-light: #cbcc70; $custom-dark: #000000;
JSON
{
"hex": "#afb72a",
"rgb": {
"r": 175,
"g": 183,
"b": 42
},
"hsl": {
"h": 63.404,
"s": 62.667,
"l": 44.118
},
"oklch": {
"l": 0.74903,
"c": 0.15449,
"h": 112.9
},
"luminance": 0.43148
}Semantic roles & 50–950 ramp
primary
#AFB72A
secondary
#7974C9
accent
#42E64B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B