#AFB31F#AFB31F
#AFB31F is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.0% C 0.155 H 111.3°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB31F |
|---|---|
| RGB | rgb(175, 179, 31) |
| HSL | hsl(62, 70%, 41%) |
| HSV | hsv(62, 83%, 70%) |
| CMYK | cmyk(2.2%, 0%, 82.7%, 29.8%) |
| CIE-LAB | lab(70.49, -17.71, 67.13) |
| CIE-LCH | lch(70.49, 69.42, 104.78°) |
| OKLab | oklab(73.96% -0.0565 0.1447) |
| OKLCH | oklch(73.96% 0.155 111.3) |
| XYZ | xyz(34.0479, 41.4540, 7.5039) |
| Luminance | 0.4145 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.11
Snot
#ACBB0D
ΔE00 3.00
Puke
#A5A502
ΔE00 4.02
Puke Green
#9AAE07
ΔE00 4.24
Vomit
#A2A415
ΔE00 4.31
Puke Yellow
#C2BE0E
ΔE00 4.33
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB31F #231FB3
analogous
#B36D1F #AFB31F #65B31F
triadic
#AFB31F #1FAFB3 #B31FAF
tetradic
#AFB31F #1FB36D #231FB3 #B31F65
square
#AFB31F #1FB36D #231FB3 #B31F65
split-complementary
#AFB31F #1F65B3 #6D1FB3
monochromatic
#494B0D #7C7F16 #AFB31F #D7DC33 #E1E568
Accessibility & contrast
On white
2.26
#AFB31F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.29
#AFB31F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB31F
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB31F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB31F | 1.00 | 2.26 | 9.29 | 9.29 |
| #FFFFFF | 2.26 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.29 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.29 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AB00
Deuteranopia (green-blind)
#C2AE2E
Tritanopia (blue-blind)
#BCA799
Achromatopsia (no color)
#ACACAC
Design tokens & code
CSS
--color: #afb31f; /* rgb */ color: rgb(175, 179, 31); /* oklch */ color: oklch(74.0% 0.155 111.3);
Tailwind
colors: {
custom: {
50: '#cbc96b',
500: '#afb31f',
950: '#000000',
},
}SCSS
$custom: #afb31f; $custom-light: #cbc96b; $custom-dark: #000000;
JSON
{
"hex": "#afb31f",
"rgb": {
"r": 175,
"g": 179,
"b": 31
},
"hsl": {
"h": 61.622,
"s": 70.476,
"l": 41.176
},
"oklch": {
"l": 0.73957,
"c": 0.15536,
"h": 111.3
},
"luminance": 0.41453
}Semantic roles & 50–950 ramp
primary
#AFB31F
secondary
#6664CA
accent
#3BED3F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A