#AFB52A#AFB52A
#AFB52A is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.5% C 0.152 H 112.1°. Best body text is #000000 at 9.47:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB52A |
|---|---|
| RGB | rgb(175, 181, 42) |
| HSL | hsl(63, 62%, 44%) |
| HSV | hsv(63, 77%, 71%) |
| CMYK | cmyk(3.3%, 0%, 76.8%, 29%) |
| CIE-LAB | lab(71.10, -18.33, 64.57) |
| CIE-LCH | lch(71.10, 67.12, 105.85°) |
| OKLab | oklab(74.46% -0.0574 0.1412) |
| OKLCH | oklch(74.46% 0.152 112.1) |
| XYZ | xyz(34.6222, 42.3297, 8.5367) |
| Luminance | 0.4233 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.12
Snot
#ACBB0D
ΔE00 2.68
Puke Green
#9AAE07
ΔE00 4.14
Bile
#B5C306
ΔE00 4.32
Baby Puke Green
#B6C406
ΔE00 4.55
Puke Yellow
#C2BE0E
ΔE00 4.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB52A #302AB5
analogous
#B5752A #AFB52A #69B52A
triadic
#AFB52A #2AAFB5 #B52AAF
tetradic
#AFB52A #2AB575 #302AB5 #B52A69
square
#AFB52A #2AB575 #302AB5 #B52A69
split-complementary
#AFB52A #2A69B5 #752AB5
monochromatic
#4F5213 #7F831E #AFB52A #CED448 #DCE079
Accessibility & contrast
On white
2.22
#AFB52A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.47
#AFB52A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB52A
9.47:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB52A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB52A | 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)
#C3AC02
Deuteranopia (green-blind)
#C4B036
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb52a; /* rgb */ color: rgb(175, 181, 42); /* oklch */ color: oklch(74.5% 0.152 112.1);
Tailwind
colors: {
custom: {
50: '#cbca6f',
500: '#afb52a',
950: '#000000',
},
}SCSS
$custom: #afb52a; $custom-light: #cbca6f; $custom-dark: #000000;
JSON
{
"hex": "#afb52a",
"rgb": {
"r": 175,
"g": 181,
"b": 42
},
"hsl": {
"h": 62.59,
"s": 62.332,
"l": 43.725
},
"oklch": {
"l": 0.74456,
"c": 0.15242,
"h": 112.1
},
"luminance": 0.42329
}Semantic roles & 50–950 ramp
primary
#AFB52A
secondary
#7673C8
accent
#42E549
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B