#AFB533#AFB533
#AFB533 is a light, vivid yellow. Relative luminance 0.424; OKLCH L 74.5% C 0.147 H 112.1°. Best body text is #000000 at 9.48:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB533 |
|---|---|
| RGB | rgb(175, 181, 51) |
| HSL | hsl(63, 56%, 45%) |
| HSV | hsv(63, 72%, 71%) |
| CMYK | cmyk(3.3%, 0%, 71.8%, 29%) |
| CIE-LAB | lab(71.15, -17.93, 61.60) |
| CIE-LCH | lch(71.15, 64.16, 106.23°) |
| OKLab | oklab(74.51% -0.0555 0.1365) |
| OKLCH | oklch(74.51% 0.147 112.1) |
| XYZ | xyz(34.8017, 42.4016, 9.4824) |
| Luminance | 0.4240 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.72
Snot
#ACBB0D
ΔE00 3.17
Puke Green
#9AAE07
ΔE00 4.30
Bile
#B5C306
ΔE00 4.76
Sick Green
#9DB92C
ΔE00 4.78
Pea
#A4BF20
ΔE00 4.80
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB533 #3933B5
analogous
#B57A33 #AFB533 #6EB533
triadic
#AFB533 #33AFB5 #B533AF
tetradic
#AFB533 #33B57A #3933B5 #B5336E
square
#AFB533 #33B57A #3933B5 #B5336E
split-complementary
#AFB533 #336EB5 #7A33B5
monochromatic
#535618 #818526 #AFB533 #CACF56 #D9DD86
Accessibility & contrast
On white
2.22
#AFB533 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.48
#AFB533 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB533
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB533 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB533 | 1.00 | 2.22 | 9.48 | 9.48 |
| #FFFFFF | 2.22 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.48 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.48 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C3AD1B
Deuteranopia (green-blind)
#C3B03D
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb533; /* rgb */ color: rgb(175, 181, 51); /* oklch */ color: oklch(74.5% 0.147 112.1);
Tailwind
colors: {
custom: {
50: '#cacb74',
500: '#afb533',
950: '#000000',
},
}SCSS
$custom: #afb533; $custom-light: #cacb74; $custom-dark: #000000;
JSON
{
"hex": "#afb533",
"rgb": {
"r": 175,
"g": 181,
"b": 51
},
"hsl": {
"h": 62.769,
"s": 56.034,
"l": 45.49
},
"oklch": {
"l": 0.74511,
"c": 0.14736,
"h": 112.1
},
"luminance": 0.42401
}Semantic roles & 50–950 ramp
primary
#AFB533
secondary
#817DC6
accent
#48DF4F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B