#AFAB2D#AFAB2D
#AFAB2D is a light, vivid yellow. Relative luminance 0.384; OKLCH L 72.3% C 0.141 H 107.6°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB2D |
|---|---|
| RGB | rgb(175, 171, 45) |
| HSL | hsl(58, 59%, 43%) |
| HSV | hsv(58, 74%, 69%) |
| CMYK | cmyk(0%, 2.3%, 74.3%, 31.4%) |
| CIE-LAB | lab(68.34, -13.11, 61.03) |
| CIE-LCH | lch(68.34, 62.42, 102.12°) |
| OKLab | oklab(72.25% -0.0426 0.1342) |
| OKLCH | oklch(72.25% 0.141 107.6) |
| XYZ | xyz(32.7170, 38.4304, 8.1765) |
| Luminance | 0.3843 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.85
Vomit
#A2A415
ΔE00 2.99
Mustard Green
#A8B504
ΔE00 4.85
Muddy Yellow
#BFAC05
ΔE00 4.96
Olive Yellow
#C2B709
ΔE00 5.16
Puke Green
#9AAE07
ΔE00 5.69
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB2D #2D31AF
analogous
#AF6A2D #AFAB2D #72AF2D
triadic
#AFAB2D #2DAFAB #AB2DAF
tetradic
#AFAB2D #2DAF6A #2D31AF #AF2D72
square
#AFAB2D #2DAF6A #2D31AF #AF2D72
split-complementary
#AFAB2D #2D72AF #6A2DAF
monochromatic
#4E4C14 #7E7B20 #AFAB2D #D0CC49 #DDDA7A
Accessibility & contrast
On white
2.42
#AFAB2D on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.69
#AFAB2D on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB2D
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB2D | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB2D | 1.00 | 2.42 | 8.69 | 8.69 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.69 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.69 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BAA413
Deuteranopia (green-blind)
#BCA937
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab2d; /* rgb */ color: rgb(175, 171, 45); /* oklch */ color: oklch(72.3% 0.141 107.6);
Tailwind
colors: {
custom: {
50: '#cac370',
500: '#afab2d',
950: '#000000',
},
}SCSS
$custom: #afab2d; $custom-light: #cac370; $custom-dark: #000000;
JSON
{
"hex": "#afab2d",
"rgb": {
"r": 175,
"g": 171,
"b": 45
},
"hsl": {
"h": 58.154,
"s": 59.091,
"l": 43.137
},
"oklch": {
"l": 0.72254,
"c": 0.14082,
"h": 107.6
},
"luminance": 0.38429
}Semantic roles & 50–950 ramp
primary
#AFAB2D
secondary
#7375C5
accent
#4AE246
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B