#AFAE2B#AFAE2B
#AFAE2B is a light, vivid yellow. Relative luminance 0.396; OKLCH L 72.9% C 0.145 H 109.1°. Best body text is #000000 at 8.91:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAE2B |
|---|---|
| RGB | rgb(175, 174, 43) |
| HSL | hsl(60, 61%, 43%) |
| HSV | hsv(60, 75%, 69%) |
| CMYK | cmyk(0%, 0.6%, 75.4%, 31.4%) |
| CIE-LAB | lab(69.16, -14.74, 62.47) |
| CIE-LCH | lch(69.16, 64.18, 103.27°) |
| OKLab | oklab(72.91% -0.0473 0.1369) |
| OKLCH | oklch(72.91% 0.145 109.1) |
| XYZ | xyz(33.2525, 39.5615, 8.1695) |
| Luminance | 0.3956 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.11
Vomit
#A2A415
ΔE00 3.26
Mustard Green
#A8B504
ΔE00 3.83
Olive Yellow
#C2B709
ΔE00 4.86
Snot
#ACBB0D
ΔE00 4.87
Puke Green
#9AAE07
ΔE00 4.99
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAE2B #2B2CAF
analogous
#AF6C2B #AFAE2B #6EAF2B
triadic
#AFAE2B #2BAFAE #AE2BAF
tetradic
#AFAE2B #2BAF6C #2B2CAF #AF2B6E
square
#AFAE2B #2BAF6C #2B2CAF #AF2B6E
split-complementary
#AFAE2B #2B6EAF #6C2BAF
monochromatic
#4D4C13 #7E7D1F #AFAE2B #D1D046 #DEDD77
Accessibility & contrast
On white
2.36
#AFAE2B on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.91
#AFAE2B on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAE2B
8.91:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAE2B | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAE2B | 1.00 | 2.36 | 8.91 | 8.91 |
| #FFFFFF | 2.36 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.91 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.91 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BCA70B
Deuteranopia (green-blind)
#BEAB36
Tritanopia (blue-blind)
#BCA395
Achromatopsia (no color)
#A9A9A9
Design tokens & code
CSS
--color: #afae2b; /* rgb */ color: rgb(175, 174, 43); /* oklch */ color: oklch(72.9% 0.145 109.1);
Tailwind
colors: {
custom: {
50: '#cbc56f',
500: '#afae2b',
950: '#000000',
},
}SCSS
$custom: #afae2b; $custom-light: #cbc56f; $custom-dark: #000000;
JSON
{
"hex": "#afae2b",
"rgb": {
"r": 175,
"g": 174,
"b": 43
},
"hsl": {
"h": 59.545,
"s": 60.55,
"l": 42.745
},
"oklch": {
"l": 0.72905,
"c": 0.14485,
"h": 109.1
},
"luminance": 0.3956
}Semantic roles & 50–950 ramp
primary
#AFAE2B
secondary
#7071C5
accent
#45E444
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B