#AFA23A#AFA23A
#AFA23A is a light, vivid yellow. Relative luminance 0.353; OKLCH L 70.4% C 0.124 H 102.1°. Best body text is #000000 at 8.05:1 contrast (WCAG AA passes).
Color values
| HEX | #AFA23A |
|---|---|
| RGB | rgb(175, 162, 58) |
| HSL | hsl(53, 50%, 46%) |
| HSV | hsv(53, 67%, 69%) |
| CMYK | cmyk(0%, 7.4%, 66.9%, 31.4%) |
| CIE-LAB | lab(65.95, -7.72, 53.67) |
| CIE-LCH | lch(65.95, 54.23, 98.19°) |
| OKLab | oklab(70.38% -0.026 0.121) |
| OKLCH | oklch(70.38% 0.124 102.1) |
| XYZ | xyz(31.3645, 35.2614, 9.1562) |
| Luminance | 0.3526 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.95
Puke
#A5A502
ΔE00 5.07
Brown Yellow
#B29705
ΔE00 5.74
Muddy Yellow
#BFAC05
ΔE00 5.78
Khaki (survey)
#AAA662
ΔE00 6.48
Baby Poo
#AB9004
ΔE00 6.91
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFA23A #3A47AF
analogous
#AF673A #AFA23A #81AF3A
triadic
#AFA23A #3AAFA2 #A23AAF
tetradic
#AFA23A #3AAF67 #3A47AF #AF3A81
square
#AFA23A #3AAF67 #3A47AF #AF3A81
split-complementary
#AFA23A #3A81AF #673AAF
monochromatic
#534D1C #81772B #AFA23A #C9BD5D #D9D08B
Accessibility & contrast
On white
2.61
#AFA23A on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.05
#AFA23A on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFA23A
8.05:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFA23A | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFA23A | 1.00 | 2.61 | 8.05 | 8.05 |
| #FFFFFF | 2.61 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.05 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.05 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B19D2C
Deuteranopia (green-blind)
#B4A340
Tritanopia (blue-blind)
#BC978D
Achromatopsia (no color)
#A0A0A0
Design tokens & code
CSS
--color: #afa23a; /* rgb */ color: rgb(175, 162, 58); /* oklch */ color: oklch(70.4% 0.124 102.1);
Tailwind
colors: {
custom: {
50: '#cabd76',
500: '#afa23a',
950: '#000000',
},
}SCSS
$custom: #afa23a; $custom-light: #cabd76; $custom-dark: #000000;
JSON
{
"hex": "#afa23a",
"rgb": {
"r": 175,
"g": 162,
"b": 58
},
"hsl": {
"h": 53.333,
"s": 50.215,
"l": 45.686
},
"oklch": {
"l": 0.70384,
"c": 0.12376,
"h": 102.1
},
"luminance": 0.3526
}Semantic roles & 50–950 ramp
primary
#AFA23A
secondary
#8289C3
accent
#5EDA4E
background
#FCFBF7
surface
#F9F6ED
border
#D2D0C8
text
#141209
muted
#82817B