#AFAC2C#AFAC2C
#AFAC2C is a light, vivid yellow. Relative luminance 0.388; OKLCH L 72.5% C 0.142 H 108.1°. Best body text is #000000 at 8.76:1 contrast (WCAG AA passes).
Color values
| HEX | #AFAC2C |
|---|---|
| RGB | rgb(175, 172, 44) |
| HSL | hsl(59, 60%, 43%) |
| HSV | hsv(59, 75%, 69%) |
| CMYK | cmyk(0%, 1.7%, 74.9%, 31.4%) |
| CIE-LAB | lab(68.61, -13.67, 61.62) |
| CIE-LCH | lch(68.61, 63.12, 102.50°) |
| OKLab | oklab(72.47% -0.0442 0.1353) |
| OKLCH | oklch(72.47% 0.142 108.1) |
| XYZ | xyz(32.8876, 38.8019, 8.1395) |
| Luminance | 0.3880 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 2.88
Vomit
#A2A415
ΔE00 3.03
Mustard Green
#A8B504
ΔE00 4.49
Olive Yellow
#C2B709
ΔE00 5.02
Muddy Yellow
#BFAC05
ΔE00 5.06
Puke Green
#9AAE07
ΔE00 5.43
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFAC2C #2C2FAF
analogous
#AF6A2C #AFAC2C #70AF2C
triadic
#AFAC2C #2CAFAC #AC2CAF
tetradic
#AFAC2C #2CAF6A #2C2FAF #AF2C70
square
#AFAC2C #2CAF6A #2C2FAF #AF2C70
split-complementary
#AFAC2C #2C70AF #6A2CAF
monochromatic
#4D4C13 #7E7C20 #AFAC2C #D1CE47 #DDDB78
Accessibility & contrast
On white
2.40
#AFAC2C on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.76
#AFAC2C on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFAC2C
8.76:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFAC2C | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFAC2C | 1.00 | 2.40 | 8.76 | 8.76 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.76 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.76 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BBA510
Deuteranopia (green-blind)
#BDA936
Tritanopia (blue-blind)
#BCA194
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #afac2c; /* rgb */ color: rgb(175, 172, 44); /* oklch */ color: oklch(72.5% 0.142 108.1);
Tailwind
colors: {
custom: {
50: '#cbc46f',
500: '#afac2c',
950: '#000000',
},
}SCSS
$custom: #afac2c; $custom-light: #cbc46f; $custom-dark: #000000;
JSON
{
"hex": "#afac2c",
"rgb": {
"r": 175,
"g": 172,
"b": 44
},
"hsl": {
"h": 58.626,
"s": 59.817,
"l": 42.941
},
"oklch": {
"l": 0.72469,
"c": 0.14235,
"h": 108.1
},
"luminance": 0.38801
}Semantic roles & 50–950 ramp
primary
#AFAC2C
secondary
#7274C5
accent
#48E345
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141208
muted
#82817B