#AFB72E#AFB72E
#AFB72E is a light, vivid yellow. Relative luminance 0.432; OKLCH L 74.9% C 0.152 H 112.9°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB72E |
|---|---|
| RGB | rgb(175, 183, 46) |
| HSL | hsl(64, 60%, 45%) |
| HSV | hsv(64, 75%, 72%) |
| CMYK | cmyk(4.4%, 0%, 74.9%, 28.2%) |
| CIE-LAB | lab(71.68, -19.17, 63.82) |
| CIE-LCH | lch(71.68, 66.64, 106.72°) |
| OKLab | oklab(74.93% -0.0594 0.1403) |
| OKLCH | oklch(74.93% 0.152 112.9) |
| XYZ | xyz(35.1069, 43.1790, 9.0693) |
| Luminance | 0.4318 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.19
Snot
#ACBB0D
ΔE00 2.39
Bile
#B5C306
ΔE00 3.99
Pea
#A4BF20
ΔE00 4.16
Puke Green
#9AAE07
ΔE00 4.18
Baby Puke Green
#B6C406
ΔE00 4.22
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB72E #362EB7
analogous
#B77B2E #AFB72E #6AB72E
triadic
#AFB72E #2EAFB7 #B72EAF
tetradic
#AFB72E #2EB77B #362EB7 #B72E6A
square
#AFB72E #2EB77B #362EB7 #B72E6A
split-complementary
#AFB72E #2E6AB7 #7B2EB7
monochromatic
#515515 #808622 #AFB72E #CBD34F #DADF80
Accessibility & contrast
On white
2.18
#AFB72E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.64
#AFB72E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB72E
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB72E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB72E | 1.00 | 2.18 | 9.64 | 9.64 |
| #FFFFFF | 2.18 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.64 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.64 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C5AE0E
Deuteranopia (green-blind)
#C5B13A
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb72e; /* rgb */ color: rgb(175, 183, 46); /* oklch */ color: oklch(74.9% 0.152 112.9);
Tailwind
colors: {
custom: {
50: '#cacc72',
500: '#afb72e',
950: '#000000',
},
}SCSS
$custom: #afb72e; $custom-light: #cacc72; $custom-dark: #000000;
JSON
{
"hex": "#afb72e",
"rgb": {
"r": 175,
"g": 183,
"b": 46
},
"hsl": {
"h": 63.504,
"s": 59.825,
"l": 44.902
},
"oklch": {
"l": 0.74926,
"c": 0.15238,
"h": 112.9
},
"luminance": 0.43178
}Semantic roles & 50–950 ramp
primary
#AFB72E
secondary
#7D79C8
accent
#45E34E
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B