#AFAB30#AFAB30
#AFAB30 is a light, vivid yellow. Relative luminance 0.385; OKLCH L 72.3% C 0.139 H 107.5°. Best body text is #000000 at 8.69:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAB30 |
|---|---|
| RGB | rgb(175, 171, 48) |
| HSL | hsl(58, 57%, 44%) |
| HSV | hsv(58, 73%, 69%) |
| CMYK | cmyk(0%, 2.3%, 72.6%, 31.4%) |
| CIE-LAB | lab(68.35, -12.97, 59.99) |
| CIE-LCH | lch(68.35, 61.37, 102.20°) |
| OKLab | oklab(72.27% -0.0419 0.1326) |
| OKLCH | oklch(72.27% 0.139 107.5) |
| XYZ | xyz(32.7769, 38.4543, 8.4916) |
| Luminance | 0.3845 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.04
Vomit
#A2A415
ΔE00 3.08
Mustard Green
#A8B504
ΔE00 4.97
Muddy Yellow
#BFAC05
ΔE00 5.12
Olive Yellow
#C2B709
ΔE00 5.33
Puke Green
#9AAE07
ΔE00 5.76
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAB30 #3034AF
analogous
#AF6B30 #AFAB30 #73AF30
triadic
#AFAB30 #30AFAB #AB30AF
tetradic
#AFAB30 #30AF6B #3034AF #AF3073
square
#AFAB30 #30AF6B #3034AF #AF3073
split-complementary
#AFAB30 #3073AF #6B30AF
monochromatic
#4F4D16 #7F7C23 #AFAB30 #CECA4E #DCD97E
Accessibility & contrast
On white
2.42
#AFAB30 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.69
#AFAB30 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAB30
8.69:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAB30 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAB30 | 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)
#B9A419
Deuteranopia (green-blind)
#BCA939
Tritanopia (blue-blind)
#BCA093
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afab30; /* rgb */ color: rgb(175, 171, 48); /* oklch */ color: oklch(72.3% 0.139 107.5);
Tailwind
colors: {
custom: {
50: '#cac371',
500: '#afab30',
950: '#000000',
},
}SCSS
$custom: #afab30; $custom-light: #cac371; $custom-dark: #000000;
JSON
{
"hex": "#afab30",
"rgb": {
"r": 175,
"g": 171,
"b": 48
},
"hsl": {
"h": 58.11,
"s": 56.951,
"l": 43.725
},
"oklch": {
"l": 0.72274,
"c": 0.13904,
"h": 107.5
},
"luminance": 0.38453
}Semantic roles & 50–950 ramp
primary
#AFAB30
secondary
#7679C4
accent
#4CE048
background
#FCFBF7
surface
#F9F7ED
border
#D2D0C8
text
#141208
muted
#82817B