#AFB934#AFB934
#AFB934 is a light, vivid yellow. Relative luminance 0.441; OKLCH L 75.4% C 0.151 H 113.8°. Best body text is #000000 at 9.81:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB934 |
|---|---|
| RGB | rgb(175, 185, 52) |
| HSL | hsl(65, 56%, 46%) |
| HSV | hsv(65, 72%, 73%) |
| CMYK | cmyk(5.4%, 0%, 71.9%, 27.5%) |
| CIE-LAB | lab(72.27, -19.89, 62.33) |
| CIE-LCH | lch(72.27, 65.43, 107.69°) |
| OKLab | oklab(75.41% -0.0608 0.1382) |
| OKLCH | oklch(75.41% 0.151 113.8) |
| XYZ | xyz(35.6490, 44.0605, 9.8748) |
| Luminance | 0.4406 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.47
Mustard Green
#A8B504
ΔE00 2.65
Pea
#A4BF20
ΔE00 3.68
Bile
#B5C306
ΔE00 3.92
Sick Green
#9DB92C
ΔE00 3.96
Baby Puke Green
#B6C406
ΔE00 4.13
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB934 #3E34B9
analogous
#B98134 #AFB934 #6DB934
triadic
#AFB934 #34AFB9 #B934AF
tetradic
#AFB934 #34B981 #3E34B9 #B9346D
square
#AFB934 #34B981 #3E34B9 #B9346D
split-complementary
#AFB934 #346DB9 #8134B9
monochromatic
#555919 #828927 #AFB934 #C8D15A #D8DE89
Accessibility & contrast
On white
2.14
#AFB934 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.81
#AFB934 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB934
9.81:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB934 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB934 | 1.00 | 2.14 | 9.81 | 9.81 |
| #FFFFFF | 2.14 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.81 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.81 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B01B
Deuteranopia (green-blind)
#C6B23F
Tritanopia (blue-blind)
#BBAE9F
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #afb934; /* rgb */ color: rgb(175, 185, 52); /* oklch */ color: oklch(75.4% 0.151 113.8);
Tailwind
colors: {
custom: {
50: '#cacd75',
500: '#afb934',
950: '#000000',
},
}SCSS
$custom: #afb934; $custom-light: #cacd75; $custom-dark: #000000;
JSON
{
"hex": "#afb934",
"rgb": {
"r": 175,
"g": 185,
"b": 52
},
"hsl": {
"h": 64.511,
"s": 56.118,
"l": 46.471
},
"oklch": {
"l": 0.75412,
"c": 0.15103,
"h": 113.8
},
"luminance": 0.4406
}Semantic roles & 50–950 ramp
primary
#AFB934
secondary
#8681C8
accent
#48DF54
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141309
muted
#82827B