#AFB040#AFB040
#AFB040 is a light, vivid yellow. Relative luminance 0.405; OKLCH L 73.5% C 0.133 H 109.8°. Best body text is #000000 at 9.11:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB040 |
|---|---|
| RGB | rgb(175, 176, 64) |
| HSL | hsl(61, 47%, 47%) |
| HSV | hsv(61, 64%, 69%) |
| CMYK | cmyk(0.6%, 0%, 63.6%, 31%) |
| CIE-LAB | lab(69.85, -14.65, 55.22) |
| CIE-LCH | lch(69.85, 57.13, 104.86°) |
| OKLab | oklab(73.5% -0.045 0.1252) |
| OKLCH | oklch(73.5% 0.133 109.8) |
| XYZ | xyz(34.1310, 40.5357, 10.8757) |
| Luminance | 0.4053 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Vomit
#A2A415
ΔE00 4.51
Mustard Green
#A8B504
ΔE00 4.73
Puke
#A5A502
ΔE00 4.81
Puke Green
#9AAE07
ΔE00 5.41
Snot
#ACBB0D
ΔE00 5.44
Booger
#9BB53C
ΔE00 5.82
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB040 #4140B0
analogous
#B07940 #AFB040 #77B040
triadic
#AFB040 #40AFB0 #B040AF
tetradic
#AFB040 #40B079 #4140B0 #B04077
square
#AFB040 #40B079 #4140B0 #B04077
split-complementary
#AFB040 #4077B0 #7940B0
monochromatic
#56561F #828330 #AFB040 #C6C766 #D7D893
Accessibility & contrast
On white
2.31
#AFB040 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.11
#AFB040 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB040
9.11:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB040 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB040 | 1.00 | 2.31 | 9.11 | 9.11 |
| #FFFFFF | 2.31 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.11 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.11 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA932
Deuteranopia (green-blind)
#BFAC47
Tritanopia (blue-blind)
#BBA599
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #afb040; /* rgb */ color: rgb(175, 176, 64); /* oklch */ color: oklch(73.5% 0.133 109.8);
Tailwind
colors: {
custom: {
50: '#cac77a',
500: '#afb040',
950: '#000000',
},
}SCSS
$custom: #afb040; $custom-light: #cac77a; $custom-dark: #000000;
JSON
{
"hex": "#afb040",
"rgb": {
"r": 175,
"g": 176,
"b": 64
},
"hsl": {
"h": 60.536,
"s": 46.667,
"l": 47.059
},
"oklch": {
"l": 0.73503,
"c": 0.13303,
"h": 109.8
},
"luminance": 0.40535
}Semantic roles & 50–950 ramp
primary
#AFB040
secondary
#8989C3
accent
#51D653
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C