#AFB528#AFB528
#AFB528 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.4% C 0.153 H 112.1°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB528 |
|---|---|
| RGB | rgb(175, 181, 40) |
| HSL | hsl(63, 64%, 43%) |
| HSV | hsv(63, 78%, 71%) |
| CMYK | cmyk(3.3%, 0%, 77.9%, 29%) |
| CIE-LAB | lab(71.09, -18.41, 65.17) |
| CIE-LCH | lch(71.09, 67.72, 105.78°) |
| OKLab | oklab(74.44% -0.0578 0.1421) |
| OKLCH | oklch(74.44% 0.153 112.1) |
| XYZ | xyz(34.5873, 42.3158, 8.3529) |
| Luminance | 0.4232 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.02
Snot
#ACBB0D
ΔE00 2.60
Puke Green
#9AAE07
ΔE00 4.13
Bile
#B5C306
ΔE00 4.25
Baby Puke Green
#B6C406
ΔE00 4.48
Puke Yellow
#C2BE0E
ΔE00 4.54
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB528 #2E28B5
analogous
#B57428 #AFB528 #68B528
triadic
#AFB528 #28AFB5 #B528AF
tetradic
#AFB528 #28B574 #2E28B5 #B52868
square
#AFB528 #28B574 #2E28B5 #B52868
split-complementary
#AFB528 #2868B5 #7428B5
monochromatic
#4E5112 #7F831D #AFB528 #D0D644 #DCE177
Accessibility & contrast
On white
2.22
#AFB528 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.46
#AFB528 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB528
9.46:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB528 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB528 | 1.00 | 2.22 | 9.46 | 9.46 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.46 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.46 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AC00
Deuteranopia (green-blind)
#C4B035
Tritanopia (blue-blind)
#BBAA9B
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb528; /* rgb */ color: rgb(175, 181, 40); /* oklch */ color: oklch(74.4% 0.153 112.1);
Tailwind
colors: {
custom: {
50: '#cbca6f',
500: '#afb528',
950: '#000000',
},
}SCSS
$custom: #afb528; $custom-light: #cbca6f; $custom-dark: #000000;
JSON
{
"hex": "#afb528",
"rgb": {
"r": 175,
"g": 181,
"b": 40
},
"hsl": {
"h": 62.553,
"s": 63.801,
"l": 43.333
},
"oklch": {
"l": 0.74445,
"c": 0.15342,
"h": 112.1
},
"luminance": 0.42315
}Semantic roles & 50–950 ramp
primary
#AFB528
secondary
#7470C8
accent
#41E748
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B