#AFB731#AFB731
#AFB731 is a light, vivid yellow. Relative luminance 0.432; OKLCH L 74.9% C 0.151 H 112.9°. Best body text is #000000 at 9.64:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB731 |
|---|---|
| RGB | rgb(175, 183, 49) |
| HSL | hsl(64, 58%, 45%) |
| HSV | hsv(64, 73%, 72%) |
| CMYK | cmyk(4.4%, 0%, 73.2%, 28.2%) |
| CIE-LAB | lab(71.69, -19.03, 62.83) |
| CIE-LCH | lch(71.69, 65.65, 106.85°) |
| OKLab | oklab(74.94% -0.0587 0.1388) |
| OKLCH | oklch(74.94% 0.151 112.9) |
| XYZ | xyz(35.1682, 43.2035, 9.3917) |
| Luminance | 0.4320 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.41
Snot
#ACBB0D
ΔE00 2.58
Bile
#B5C306
ΔE00 4.15
Pea
#A4BF20
ΔE00 4.19
Puke Green
#9AAE07
ΔE00 4.24
Sick Green
#9DB92C
ΔE00 4.37
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB731 #3931B7
analogous
#B77C31 #AFB731 #6CB731
triadic
#AFB731 #31AFB7 #B731AF
tetradic
#AFB731 #31B77C #3931B7 #B7316C
square
#AFB731 #31B77C #3931B7 #B7316C
split-complementary
#AFB731 #316CB7 #7C31B7
monochromatic
#535617 #818724 #AFB731 #CAD154 #D9DE84
Accessibility & contrast
On white
2.18
#AFB731 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.64
#AFB731 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB731
9.64:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB731 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB731 | 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)
#C5AE16
Deuteranopia (green-blind)
#C5B13C
Tritanopia (blue-blind)
#BBAC9D
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb731; /* rgb */ color: rgb(175, 183, 49); /* oklch */ color: oklch(74.9% 0.151 112.9);
Tailwind
colors: {
custom: {
50: '#cacc73',
500: '#afb731',
950: '#000000',
},
}SCSS
$custom: #afb731; $custom-light: #cacc73; $custom-dark: #000000;
JSON
{
"hex": "#afb731",
"rgb": {
"r": 175,
"g": 183,
"b": 49
},
"hsl": {
"h": 63.582,
"s": 57.759,
"l": 45.49
},
"oklch": {
"l": 0.74944,
"c": 0.15068,
"h": 112.9
},
"luminance": 0.43203
}Semantic roles & 50–950 ramp
primary
#AFB731
secondary
#817CC8
accent
#47E150
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B