#AFB52E#AFB52E
#AFB52E is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.5% C 0.150 H 112.1°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB52E |
|---|---|
| RGB | rgb(175, 181, 46) |
| HSL | hsl(63, 59%, 45%) |
| HSV | hsv(63, 75%, 71%) |
| CMYK | cmyk(3.3%, 0%, 74.6%, 29%) |
| CIE-LAB | lab(71.12, -18.16, 63.30) |
| CIE-LCH | lch(71.12, 65.85, 106.01°) |
| OKLab | oklab(74.48% -0.0566 0.1392) |
| OKLCH | oklch(74.48% 0.15 112.1) |
| XYZ | xyz(34.6974, 42.3598, 8.9327) |
| Luminance | 0.4236 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.36
Snot
#ACBB0D
ΔE00 2.87
Puke Green
#9AAE07
ΔE00 4.19
Bile
#B5C306
ΔE00 4.50
Baby Puke Green
#B6C406
ΔE00 4.72
Pea
#A4BF20
ΔE00 4.75
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB52E #342EB5
analogous
#B5782E #AFB52E #6BB52E
triadic
#AFB52E #2EAFB5 #B52EAF
tetradic
#AFB52E #2EB578 #342EB5 #B52E6B
square
#AFB52E #2EB578 #342EB5 #B52E6B
split-complementary
#AFB52E #2E6BB5 #782EB5
monochromatic
#515315 #808422 #AFB52E #CCD24E #DADE7F
Accessibility & contrast
On white
2.22
#AFB52E on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.47
#AFB52E on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB52E
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB52E | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB52E | 1.00 | 2.22 | 9.47 | 9.47 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.47 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.47 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AC0F
Deuteranopia (green-blind)
#C4B039
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb52e; /* rgb */ color: rgb(175, 181, 46); /* oklch */ color: oklch(74.5% 0.150 112.1);
Tailwind
colors: {
custom: {
50: '#cacb71',
500: '#afb52e',
950: '#000000',
},
}SCSS
$custom: #afb52e; $custom-light: #cacb71; $custom-dark: #000000;
JSON
{
"hex": "#afb52e",
"rgb": {
"r": 175,
"g": 181,
"b": 46
},
"hsl": {
"h": 62.667,
"s": 59.471,
"l": 44.51
},
"oklch": {
"l": 0.74479,
"c": 0.15028,
"h": 112.1
},
"luminance": 0.42359
}Semantic roles & 50–950 ramp
primary
#AFB52E
secondary
#7B78C7
accent
#45E34C
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B