#AFAF2F#AFAF2F
#AFAF2F is a light, vivid yellow. Relative luminance 0.400; OKLCH L 73.2% C 0.144 H 109.5°. Best body text is #000000 at 9.00:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAF2F |
|---|---|
| RGB | rgb(175, 175, 47) |
| HSL | hsl(60, 58%, 44%) |
| HSV | hsv(60, 73%, 69%) |
| CMYK | cmyk(0%, 0%, 73.1%, 31.4%) |
| CIE-LAB | lab(69.46, -15.07, 61.39) |
| CIE-LCH | lch(69.46, 63.22, 103.79°) |
| OKLab | oklab(73.15% -0.0479 0.1354) |
| OKLCH | oklch(73.15% 0.144 109.5) |
| XYZ | xyz(33.5235, 39.9801, 8.6398) |
| Luminance | 0.3998 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.47
Vomit
#A2A415
ΔE00 3.51
Mustard Green
#A8B504
ΔE00 3.72
Snot
#ACBB0D
ΔE00 4.69
Puke Green
#9AAE07
ΔE00 4.86
Olive Yellow
#C2B709
ΔE00 5.06
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAF2F #2F2FAF
analogous
#AF6F2F #AFAF2F #6FAF2F
triadic
#AFAF2F #2FAFAF #AF2FAF
tetradic
#AFAF2F #2FAF6F #2F2FAF #AF2F6F
square
#AFAF2F #2FAF6F #2F2FAF #AF2F6F
split-complementary
#AFAF2F #2F6FAF #6F2FAF
monochromatic
#4F4F15 #7F7F22 #AFAF2F #CFCF4C #DCDC7C
Accessibility & contrast
On white
2.33
#AFAF2F on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.00
#AFAF2F on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAF2F
9.00:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAF2F | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAF2F | 1.00 | 2.33 | 9.00 | 9.00 |
| #FFFFFF | 2.33 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.00 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.00 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA715
Deuteranopia (green-blind)
#BFAB39
Tritanopia (blue-blind)
#BCA496
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #afaf2f; /* rgb */ color: rgb(175, 175, 47); /* oklch */ color: oklch(73.2% 0.144 109.5);
Tailwind
colors: {
custom: {
50: '#cac671',
500: '#afaf2f',
950: '#000000',
},
}SCSS
$custom: #afaf2f; $custom-light: #cac671; $custom-dark: #000000;
JSON
{
"hex": "#afaf2f",
"rgb": {
"r": 175,
"g": 175,
"b": 47
},
"hsl": {
"h": 60,
"s": 57.658,
"l": 43.529
},
"oklch": {
"l": 0.73151,
"c": 0.14359,
"h": 109.5
},
"luminance": 0.39979
}Semantic roles & 50–950 ramp
primary
#AFAF2F
secondary
#7575C4
accent
#47E147
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141308
muted
#82827B