#AFB31E#AFB31E
#AFB31E is a light, vivid yellow. Relative luminance 0.414; OKLCH L 74.0% C 0.156 H 111.3°. Best body text is #000000 at 9.29:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB31E |
|---|---|
| RGB | rgb(175, 179, 30) |
| HSL | hsl(62, 71%, 41%) |
| HSV | hsv(62, 83%, 70%) |
| CMYK | cmyk(2.2%, 0%, 83.2%, 29.8%) |
| CIE-LAB | lab(70.49, -17.74, 67.37) |
| CIE-LCH | lch(70.49, 69.67, 104.75°) |
| OKLab | oklab(73.95% -0.0566 0.1451) |
| OKLCH | oklch(73.95% 0.156 111.3) |
| XYZ | xyz(34.0349, 41.4488, 7.4356) |
| Luminance | 0.4145 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.10
Snot
#ACBB0D
ΔE00 2.99
Puke
#A5A502
ΔE00 4.01
Puke Green
#9AAE07
ΔE00 4.25
Puke Yellow
#C2BE0E
ΔE00 4.30
Vomit
#A2A415
ΔE00 4.31
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB31E #221EB3
analogous
#B36C1E #AFB31E #64B31E
triadic
#AFB31E #1EAFB3 #B31EAF
tetradic
#AFB31E #1EB36C #221EB3 #B31E64
square
#AFB31E #1EB36C #221EB3 #B31E64
split-complementary
#AFB31E #1E64B3 #6C1EB3
monochromatic
#494A0C #7C7F15 #AFB31E #D8DD32 #E2E566
Accessibility & contrast
On white
2.26
#AFB31E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.29
#AFB31E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB31E
9.29:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB31E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB31E | 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: #afb31e; /* rgb */ color: rgb(175, 179, 30); /* oklch */ color: oklch(74.0% 0.156 111.3);
Tailwind
colors: {
custom: {
50: '#cbc96a',
500: '#afb31e',
950: '#000000',
},
}SCSS
$custom: #afb31e; $custom-light: #cbc96a; $custom-dark: #000000;
JSON
{
"hex": "#afb31e",
"rgb": {
"r": 175,
"g": 179,
"b": 30
},
"hsl": {
"h": 61.611,
"s": 71.292,
"l": 40.98
},
"oklch": {
"l": 0.73953,
"c": 0.15574,
"h": 111.3
},
"luminance": 0.41448
}Semantic roles & 50–950 ramp
primary
#AFB31E
secondary
#6562CB
accent
#3AEE3F
background
#FDFCF6
surface
#FAF8EC
border
#D3D1C7
text
#141307
muted
#83827A