#AFB931#AFB931
#AFB931 is a light, vivid yellow. Relative luminance 0.440; OKLCH L 75.4% C 0.153 H 113.7°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB931 |
|---|---|
| RGB | rgb(175, 185, 49) |
| HSL | hsl(64, 58%, 46%) |
| HSV | hsv(64, 74%, 73%) |
| CMYK | cmyk(5.4%, 0%, 73.5%, 27.5%) |
| CIE-LAB | lab(72.25, -20.03, 63.36) |
| CIE-LCH | lch(72.25, 66.45, 107.54°) |
| OKLab | oklab(75.39% -0.0615 0.1399) |
| OKLCH | oklch(75.39% 0.153 113.7) |
| XYZ | xyz(35.5836, 44.0344, 9.5301) |
| Luminance | 0.4403 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.23
Mustard Green
#A8B504
ΔE00 2.42
Pea
#A4BF20
ΔE00 3.63
Bile
#B5C306
ΔE00 3.72
Baby Puke Green
#B6C406
ΔE00 3.93
Sick Green
#9DB92C
ΔE00 4.01
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB931 #3B31B9
analogous
#B97F31 #AFB931 #6BB931
triadic
#AFB931 #31AFB9 #B931AF
tetradic
#AFB931 #31B97F #3B31B9 #B9316B
square
#AFB931 #31B97F #3B31B9 #B9316B
split-complementary
#AFB931 #316BB9 #7F31B9
monochromatic
#535817 #818924 #AFB931 #C9D255 #D8DF86
Accessibility & contrast
On white
2.14
#AFB931 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.81
#AFB931 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB931
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB931 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB931 | 1.00 | 2.14 | 9.81 | 9.81 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B015
Deuteranopia (green-blind)
#C7B23C
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #afb931; /* rgb */ color: rgb(175, 185, 49); /* oklch */ color: oklch(75.4% 0.153 113.7);
Tailwind
colors: {
custom: {
50: '#cacd73',
500: '#afb931',
950: '#000000',
},
}SCSS
$custom: #afb931; $custom-light: #cacd73; $custom-dark: #000000;
JSON
{
"hex": "#afb931",
"rgb": {
"r": 175,
"g": 185,
"b": 49
},
"hsl": {
"h": 64.412,
"s": 58.12,
"l": 45.882
},
"oklch": {
"l": 0.75392,
"c": 0.15281,
"h": 113.7
},
"luminance": 0.44034
}Semantic roles & 50–950 ramp
primary
#AFB931
secondary
#837DC8
accent
#46E152
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B