#AFBE42#AFBE42
#AFBE42 is a light, vivid yellow. Relative luminance 0.463; OKLCH L 76.6% C 0.147 H 115.9°. Best body text is #000000 at 10.27:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBE42 |
|---|---|
| RGB | rgb(175, 190, 66) |
| HSL | hsl(67, 49%, 50%) |
| HSV | hsv(67, 65%, 75%) |
| CMYK | cmyk(7.9%, 0%, 65.3%, 25.5%) |
| CIE-LAB | lab(73.76, -21.57, 58.49) |
| CIE-LCH | lch(73.76, 62.34, 110.24°) |
| OKLab | oklab(76.64% -0.0642 0.1324) |
| OKLCH | oklch(76.64% 0.147 115.9) |
| XYZ | xyz(37.0769, 46.3347, 12.1435) |
| Luminance | 0.4633 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 3.25
Sick Green
#9DB92C
ΔE00 3.45
Snot
#ACBB0D
ΔE00 3.68
Gross Green
#A0BF16
ΔE00 3.99
Booger
#9BB53C
ΔE00 3.99
Mustard Green
#A8B504
ΔE00 4.35
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBE42 #5142BE
analogous
#BE8F42 #AFBE42 #71BE42
triadic
#AFBE42 #42AFBE #BE42AF
tetradic
#AFBE42 #42BE8F #5142BE #BE4271
square
#AFBE42 #42BE8F #5142BE #BE4271
split-complementary
#AFBE42 #4271BE #8F42BE
monochromatic
#5C6322 #859132 #AFBE42 #C2CE70 #D6DD9D
Accessibility & contrast
On white
2.05
#AFBE42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.27
#AFBE42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBE42
10.27:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBE42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBE42 | 1.00 | 2.05 | 10.27 | 10.27 |
| #FFFFFF | 2.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.27 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.27 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CBB531
Deuteranopia (green-blind)
#CAB64B
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B5B5B5
Design tokens & code
CSS
--color: #afbe42; /* rgb */ color: rgb(175, 190, 66); /* oklch */ color: oklch(76.6% 0.147 115.9);
Tailwind
colors: {
custom: {
50: '#cad17d',
500: '#afbe42',
950: '#000000',
},
}SCSS
$custom: #afbe42; $custom-light: #cad17d; $custom-dark: #000000;
JSON
{
"hex": "#afbe42",
"rgb": {
"r": 175,
"g": 190,
"b": 66
},
"hsl": {
"h": 67.258,
"s": 48.819,
"l": 50.196
},
"oklch": {
"l": 0.76639,
"c": 0.14714,
"h": 115.9
},
"luminance": 0.46334
}Semantic roles & 50–950 ramp
primary
#AFBE42
secondary
#9992CA
accent
#4FD860
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C