#AFB72F#AFB72F
#AFB72F 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 | #AFB72F |
|---|---|
| RGB | rgb(175, 183, 47) |
| HSL | hsl(64, 59%, 45%) |
| HSV | hsv(64, 74%, 72%) |
| CMYK | cmyk(4.4%, 0%, 74.3%, 28.2%) |
| CIE-LAB | lab(71.68, -19.12, 63.50) |
| CIE-LCH | lch(71.68, 66.31, 106.76°) |
| OKLab | oklab(74.93% -0.0592 0.1398) |
| OKLCH | oklch(74.93% 0.152 112.9) |
| XYZ | xyz(35.1269, 43.1870, 9.1743) |
| Luminance | 0.4319 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.26
Snot
#ACBB0D
ΔE00 2.45
Bile
#B5C306
ΔE00 4.04
Pea
#A4BF20
ΔE00 4.16
Puke Green
#9AAE07
ΔE00 4.20
Baby Puke Green
#B6C406
ΔE00 4.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB72F #372FB7
analogous
#B77B2F #AFB72F #6BB72F
triadic
#AFB72F #2FAFB7 #B72FAF
tetradic
#AFB72F #2FB77B #372FB7 #B72F6B
square
#AFB72F #2FB77B #372FB7 #B72F6B
split-complementary
#AFB72F #2F6BB7 #7B2FB7
monochromatic
#525616 #808622 #AFB72F #CBD251 #D9DF82
Accessibility & contrast
On white
2.18
#AFB72F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.64
#AFB72F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB72F
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB72F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB72F | 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)
#C5AE11
Deuteranopia (green-blind)
#C5B13A
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb72f; /* rgb */ color: rgb(175, 183, 47); /* oklch */ color: oklch(74.9% 0.152 112.9);
Tailwind
colors: {
custom: {
50: '#cacc72',
500: '#afb72f',
950: '#000000',
},
}SCSS
$custom: #afb72f; $custom-light: #cacc72; $custom-dark: #000000;
JSON
{
"hex": "#afb72f",
"rgb": {
"r": 175,
"g": 183,
"b": 47
},
"hsl": {
"h": 63.529,
"s": 59.13,
"l": 45.098
},
"oklch": {
"l": 0.74932,
"c": 0.15182,
"h": 112.9
},
"luminance": 0.43186
}Semantic roles & 50–950 ramp
primary
#AFB72F
secondary
#7F7AC8
accent
#45E24F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B