#AFB534#AFB534
#AFB534 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 | #AFB534 |
|---|---|
| RGB | rgb(175, 181, 52) |
| HSL | hsl(63, 55%, 46%) |
| HSV | hsv(63, 71%, 71%) |
| CMYK | cmyk(3.3%, 0%, 71.3%, 29%) |
| CIE-LAB | lab(71.15, -17.88, 61.25) |
| CIE-LCH | lch(71.15, 63.81, 106.27°) |
| OKLab | oklab(74.52% -0.0552 0.1359) |
| OKLCH | oklch(74.52% 0.147 112.1) |
| XYZ | xyz(34.8240, 42.4105, 9.5997) |
| Luminance | 0.4241 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.80
Snot
#ACBB0D
ΔE00 3.24
Puke Green
#9AAE07
ΔE00 4.33
Sick Green
#9DB92C
ΔE00 4.77
Bile
#B5C306
ΔE00 4.82
Pea
#A4BF20
ΔE00 4.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB534 #3A34B5
analogous
#B57A34 #AFB534 #6EB534
triadic
#AFB534 #34AFB5 #B534AF
tetradic
#AFB534 #34B57A #3A34B5 #B5346E
square
#AFB534 #34B57A #3A34B5 #B5346E
split-complementary
#AFB534 #346EB5 #7A34B5
monochromatic
#535619 #818526 #AFB534 #C9CF57 #D9DC87
Accessibility & contrast
On white
2.21
#AFB534 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.48
#AFB534 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB534
9.48:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB534 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB534 | 1.00 | 2.21 | 9.48 | 9.48 |
| #FFFFFF | 2.21 | 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)
#C3AD1D
Deuteranopia (green-blind)
#C3B03E
Tritanopia (blue-blind)
#BBAA9C
Achromatopsia (no color)
#AEAEAE
Design tokens & code
CSS
--color: #afb534; /* rgb */ color: rgb(175, 181, 52); /* oklch */ color: oklch(74.5% 0.147 112.1);
Tailwind
colors: {
custom: {
50: '#cacb74',
500: '#afb534',
950: '#000000',
},
}SCSS
$custom: #afb534; $custom-light: #cacb74; $custom-dark: #000000;
JSON
{
"hex": "#afb534",
"rgb": {
"r": 175,
"g": 181,
"b": 52
},
"hsl": {
"h": 62.791,
"s": 55.365,
"l": 45.686
},
"oklch": {
"l": 0.74518,
"c": 0.14675,
"h": 112.1
},
"luminance": 0.4241
}Semantic roles & 50–950 ramp
primary
#AFB534
secondary
#827FC6
accent
#49DF50
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B