#AFA336#AFA336
#AFA336 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.6% C 0.128 H 103.0°. Best body text is #000000 at 8.12:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA336 |
|---|---|
| RGB | rgb(175, 163, 54) |
| HSL | hsl(54, 53%, 45%) |
| HSV | hsv(54, 69%, 69%) |
| CMYK | cmyk(0%, 6.9%, 69.1%, 31.4%) |
| CIE-LAB | lab(66.19, -8.48, 55.57) |
| CIE-LCH | lch(66.19, 56.22, 98.68°) |
| OKLab | oklab(70.57% -0.0286 0.1243) |
| OKLCH | oklch(70.57% 0.128 103) |
| XYZ | xyz(31.4436, 35.5760, 8.6999) |
| Luminance | 0.3558 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.40
Puke
#A5A502
ΔE00 4.46
Muddy Yellow
#BFAC05
ΔE00 5.33
Brown Yellow
#B29705
ΔE00 5.81
Khaki (survey)
#AAA662
ΔE00 6.87
Pea Soup
#929901
ΔE00 6.90
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA336 #3642AF
analogous
#AF6736 #AFA336 #7EAF36
triadic
#AFA336 #36AFA3 #A336AF
tetradic
#AFA336 #36AF67 #3642AF #AF367E
square
#AFA336 #36AF67 #3642AF #AF367E
split-complementary
#AFA336 #367EAF #6736AF
monochromatic
#514C19 #807728 #AFA336 #CBC057 #DAD186
Accessibility & contrast
On white
2.59
#AFA336 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.12
#AFA336 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA336
8.12:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA336 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA336 | 1.00 | 2.59 | 8.12 | 8.12 |
| #FFFFFF | 2.59 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.12 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.12 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B29E26
Deuteranopia (green-blind)
#B5A33D
Tritanopia (blue-blind)
#BC988D
Achromatopsia (no color)
#A1A1A1
Design tokens & code
CSS
--color: #afa336; /* rgb */ color: rgb(175, 163, 54); /* oklch */ color: oklch(70.6% 0.128 103.0);
Tailwind
colors: {
custom: {
50: '#cabd74',
500: '#afa336',
950: '#000000',
},
}SCSS
$custom: #afa336; $custom-light: #cabd74; $custom-dark: #000000;
JSON
{
"hex": "#afa336",
"rgb": {
"r": 175,
"g": 163,
"b": 54
},
"hsl": {
"h": 54.05,
"s": 52.838,
"l": 44.902
},
"oklch": {
"l": 0.70567,
"c": 0.12757,
"h": 103
},
"luminance": 0.35575
}Semantic roles & 50–950 ramp
primary
#AFA336
secondary
#7D84C3
accent
#5ADC4C
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141208
muted
#82817B