#AFB42E#AFB42E
#AFB42E is a light, vivid yellow. Relative luminance 0.420; OKLCH L 74.3% C 0.149 H 111.7°. Best body text is #000000 at 9.39:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB42E |
|---|---|
| RGB | rgb(175, 180, 46) |
| HSL | hsl(62, 59%, 44%) |
| HSV | hsv(62, 74%, 71%) |
| CMYK | cmyk(2.8%, 0%, 74.4%, 29.4%) |
| CIE-LAB | lab(70.84, -17.66, 63.04) |
| CIE-LCH | lch(70.84, 65.47, 105.65°) |
| OKLab | oklab(74.26% -0.0552 0.1387) |
| OKLCH | oklch(74.26% 0.149 111.7) |
| XYZ | xyz(34.4948, 41.9546, 8.8652) |
| Luminance | 0.4195 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.51
Snot
#ACBB0D
ΔE00 3.14
Puke Green
#9AAE07
ΔE00 4.24
Puke
#A5A502
ΔE00 4.58
Vomit
#A2A415
ΔE00 4.62
Bile
#B5C306
ΔE00 4.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB42E #332EB4
analogous
#B4762E #AFB42E #6CB42E
triadic
#AFB42E #2EAFB4 #B42EAF
tetradic
#AFB42E #2EB476 #332EB4 #B42E6C
square
#AFB42E #2EB476 #332EB4 #B42E6C
split-complementary
#AFB42E #2E6CB4 #762EB4
monochromatic
#505315 #808322 #AFB42E #CDD24E #DBDE7E
Accessibility & contrast
On white
2.24
#AFB42E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.39
#AFB42E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB42E
9.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB42E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB42E | 1.00 | 2.24 | 9.39 | 9.39 |
| #FFFFFF | 2.24 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C2AC10
Deuteranopia (green-blind)
#C3AF39
Tritanopia (blue-blind)
#BBA99B
Achromatopsia (no color)
#ADADAD
Design tokens & code
CSS
--color: #afb42e; /* rgb */ color: rgb(175, 180, 46); /* oklch */ color: oklch(74.3% 0.149 111.7);
Tailwind
colors: {
custom: {
50: '#caca71',
500: '#afb42e',
950: '#000000',
},
}SCSS
$custom: #afb42e; $custom-light: #caca71; $custom-dark: #000000;
JSON
{
"hex": "#afb42e",
"rgb": {
"r": 175,
"g": 180,
"b": 46
},
"hsl": {
"h": 62.239,
"s": 59.292,
"l": 44.314
},
"oklch": {
"l": 0.74256,
"c": 0.14925,
"h": 111.7
},
"luminance": 0.41954
}Semantic roles & 50–950 ramp
primary
#AFB42E
secondary
#7A77C7
accent
#45E24B
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B