#AFB945#AFB945
#AFB945 is a light, vivid yellow. Relative luminance 0.442; OKLCH L 75.5% C 0.139 H 113.9°. Best body text is #000000 at 9.85:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB945 |
|---|---|
| RGB | rgb(175, 185, 69) |
| HSL | hsl(65, 46%, 50%) |
| HSV | hsv(65, 63%, 73%) |
| CMYK | cmyk(5.4%, 0%, 62.7%, 27.5%) |
| CIE-LAB | lab(72.39, -18.88, 55.80) |
| CIE-LCH | lch(72.39, 58.91, 108.70°) |
| OKLab | oklab(75.55% -0.0564 0.1272) |
| OKLCH | oklch(75.55% 0.139 113.9) |
| XYZ | xyz(36.1032, 44.2422, 12.2668) |
| Luminance | 0.4424 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Booger
#9BB53C
ΔE00 4.06
Sick Green
#9DB92C
ΔE00 4.14
Snot
#ACBB0D
ΔE00 4.19
Mustard Green
#A8B504
ΔE00 4.31
Pea
#A4BF20
ΔE00 4.48
Light Olive Green
#A4BE5C
ΔE00 5.17
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB945 #4F45B9
analogous
#B98945 #AFB945 #75B945
triadic
#AFB945 #45AFB9 #B945AF
tetradic
#AFB945 #45B989 #4F45B9 #B94575
square
#AFB945 #45B989 #4F45B9 #B94575
split-complementary
#AFB945 #4575B9 #8945B9
monochromatic
#5B6024 #858C34 #AFB945 #C2CA71 #D5DB9E
Accessibility & contrast
On white
2.13
#AFB945 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.85
#AFB945 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB945
9.85:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB945 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB945 | 1.00 | 2.13 | 9.85 | 9.85 |
| #FFFFFF | 2.13 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.85 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.85 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6B037
Deuteranopia (green-blind)
#C5B34D
Tritanopia (blue-blind)
#BAAFA1
Achromatopsia (no color)
#B1B1B1
Design tokens & code
CSS
--color: #afb945; /* rgb */ color: rgb(175, 185, 69); /* oklch */ color: oklch(75.5% 0.139 113.9);
Tailwind
colors: {
custom: {
50: '#cacd7e',
500: '#afb945',
950: '#000000',
},
}SCSS
$custom: #afb945; $custom-light: #cacd7e; $custom-dark: #000000;
JSON
{
"hex": "#afb945",
"rgb": {
"r": 175,
"g": 185,
"b": 69
},
"hsl": {
"h": 65.172,
"s": 45.669,
"l": 49.804
},
"oklch": {
"l": 0.75547,
"c": 0.13909,
"h": 113.9
},
"luminance": 0.44242
}Semantic roles & 50–950 ramp
primary
#AFB945
secondary
#9793C7
accent
#52D55E
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14130A
muted
#82827C