#AFAF29#AFAF29
#AFAF29 is a light, vivid yellow. Relative luminance 0.399; OKLCH L 73.1% C 0.147 H 109.5°. Best body text is #000000 at 8.99:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF29 |
|---|---|
| RGB | rgb(175, 175, 41) |
| HSL | hsl(60, 62%, 42%) |
| HSV | hsv(60, 77%, 69%) |
| CMYK | cmyk(0%, 0%, 76.6%, 31.4%) |
| CIE-LAB | lab(69.42, -15.33, 63.36) |
| CIE-LCH | lch(69.42, 65.18, 103.60°) |
| OKLab | oklab(73.11% -0.0491 0.1384) |
| OKLCH | oklch(73.11% 0.147 109.5) |
| XYZ | xyz(33.4107, 39.9350, 8.0457) |
| Luminance | 0.3993 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.22
Vomit
#A2A415
ΔE00 3.41
Mustard Green
#A8B504
ΔE00 3.46
Snot
#ACBB0D
ΔE00 4.49
Olive Yellow
#C2B709
ΔE00 4.75
Puke Green
#9AAE07
ΔE00 4.77
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF29 #2929AF
analogous
#AF6C29 #AFAF29 #6CAF29
triadic
#AFAF29 #29AFAF #AF29AF
tetradic
#AFAF29 #29AF6C #2929AF #AF296C
square
#AFAF29 #29AF6C #2929AF #AF296C
split-complementary
#AFAF29 #296CAF #6C29AF
monochromatic
#4C4C12 #7D7D1D #AFAF29 #D3D342 #DEDE74
Accessibility & contrast
On white
2.34
#AFAF29 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.99
#AFAF29 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF29
8.99:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF29 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF29 | 1.00 | 2.34 | 8.99 | 8.99 |
| #FFFFFF | 2.34 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.99 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.99 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEA703
Deuteranopia (green-blind)
#BFAB34
Tritanopia (blue-blind)
#BCA396
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #afaf29; /* rgb */ color: rgb(175, 175, 41); /* oklch */ color: oklch(73.1% 0.147 109.5);
Tailwind
colors: {
custom: {
50: '#cbc66e',
500: '#afaf29',
950: '#000000',
},
}SCSS
$custom: #afaf29; $custom-light: #cbc66e; $custom-dark: #000000;
JSON
{
"hex": "#afaf29",
"rgb": {
"r": 175,
"g": 175,
"b": 41
},
"hsl": {
"h": 60,
"s": 62.037,
"l": 42.353
},
"oklch": {
"l": 0.73115,
"c": 0.14689,
"h": 109.5
},
"luminance": 0.39934
}Semantic roles & 50–950 ramp
primary
#AFAF29
secondary
#6E6EC6
accent
#43E543
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B