#AFB140#AFB140
#AFB140 is a light, vivid yellow. Relative luminance 0.409; OKLCH L 73.7% C 0.134 H 110.3°. Best body text is #000000 at 9.19:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB140 |
|---|---|
| RGB | rgb(175, 177, 64) |
| HSL | hsl(61, 47%, 47%) |
| HSV | hsv(61, 64%, 69%) |
| CMYK | cmyk(1.1%, 0%, 63.8%, 30.6%) |
| CIE-LAB | lab(70.13, -15.16, 55.51) |
| CIE-LCH | lch(70.13, 57.54, 105.28°) |
| OKLab | oklab(73.72% -0.0464 0.1258) |
| OKLCH | oklch(73.72% 0.134 110.3) |
| XYZ | xyz(34.3278, 40.9293, 10.9413) |
| Luminance | 0.4093 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 4.52
Vomit
#A2A415
ΔE00 4.66
Puke
#A5A502
ΔE00 4.96
Snot
#ACBB0D
ΔE00 5.17
Puke Green
#9AAE07
ΔE00 5.26
Booger
#9BB53C
ΔE00 5.57
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB140 #4240B1
analogous
#B17B40 #AFB140 #77B140
triadic
#AFB140 #40AFB1 #B140AF
tetradic
#AFB140 #40B17B #4240B1 #B14077
square
#AFB140 #40B17B #4240B1 #B14077
split-complementary
#AFB140 #4077B1 #7B40B1
monochromatic
#56571F #838430 #AFB140 #C6C866 #D7D893
Accessibility & contrast
On white
2.29
#AFB140 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.19
#AFB140 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB140
9.19:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB140 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB140 | 1.00 | 2.29 | 9.19 | 9.19 |
| #FFFFFF | 2.29 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.19 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.19 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BEAA31
Deuteranopia (green-blind)
#C0AD47
Tritanopia (blue-blind)
#BBA69A
Achromatopsia (no color)
#ABABAB
Design tokens & code
CSS
--color: #afb140; /* rgb */ color: rgb(175, 177, 64); /* oklch */ color: oklch(73.7% 0.134 110.3);
Tailwind
colors: {
custom: {
50: '#cac87a',
500: '#afb140',
950: '#000000',
},
}SCSS
$custom: #afb140; $custom-light: #cac87a; $custom-dark: #000000;
JSON
{
"hex": "#afb140",
"rgb": {
"r": 175,
"g": 177,
"b": 64
},
"hsl": {
"h": 61.062,
"s": 46.888,
"l": 47.255
},
"oklch": {
"l": 0.73724,
"c": 0.1341,
"h": 110.3
},
"luminance": 0.40928
}Semantic roles & 50–950 ramp
primary
#AFB140
secondary
#8A89C3
accent
#51D754
background
#FCFCF7
surface
#F9F8EE
border
#D2D1C9
text
#14130A
muted
#82827C