#AFBA42#AFBA42
#AFBA42 is a light, vivid yellow. Relative luminance 0.446; OKLCH L 75.7% C 0.143 H 114.3°. Best body text is #000000 at 9.92:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBA42 |
|---|---|
| RGB | rgb(175, 186, 66) |
| HSL | hsl(66, 48%, 49%) |
| HSV | hsv(66, 65%, 73%) |
| CMYK | cmyk(5.9%, 0%, 64.5%, 27.1%) |
| CIE-LAB | lab(72.64, -19.58, 57.32) |
| CIE-LCH | lch(72.64, 60.58, 108.86°) |
| OKLab | oklab(75.74% -0.0586 0.1299) |
| OKLCH | oklch(75.74% 0.143 114.3) |
| XYZ | xyz(36.2224, 44.6258, 11.8587) |
| Luminance | 0.4462 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 3.76
Sick Green
#9DB92C
ΔE00 3.87
Mustard Green
#A8B504
ΔE00 4.00
Pea
#A4BF20
ΔE00 4.03
Booger
#9BB53C
ΔE00 4.04
Gross Green
#A0BF16
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBA42 #4D42BA
analogous
#BA8942 #AFBA42 #73BA42
triadic
#AFBA42 #42AFBA #BA42AF
tetradic
#AFBA42 #42BA89 #4D42BA #BA4273
square
#AFBA42 #42BA89 #4D42BA #BA4273
split-complementary
#AFBA42 #4273BA #8942BA
monochromatic
#5A6022 #858D32 #AFBA42 #C3CB6E #D6DB9B
Accessibility & contrast
On white
2.12
#AFBA42 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.92
#AFBA42 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBA42
9.92:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBA42 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBA42 | 1.00 | 2.12 | 9.92 | 9.92 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.92 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.92 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B132
Deuteranopia (green-blind)
#C6B34A
Tritanopia (blue-blind)
#BAB0A1
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #afba42; /* rgb */ color: rgb(175, 186, 66); /* oklch */ color: oklch(75.7% 0.143 114.3);
Tailwind
colors: {
custom: {
50: '#cace7c',
500: '#afba42',
950: '#000000',
},
}SCSS
$custom: #afba42; $custom-light: #cace7c; $custom-dark: #000000;
JSON
{
"hex": "#afba42",
"rgb": {
"r": 175,
"g": 186,
"b": 66
},
"hsl": {
"h": 65.5,
"s": 47.619,
"l": 49.412
},
"oklch": {
"l": 0.75744,
"c": 0.14255,
"h": 114.3
},
"luminance": 0.44625
}Semantic roles & 50–950 ramp
primary
#AFBA42
secondary
#9590C8
accent
#51D75D
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C