#AFBF40#AFBF40
#AFBF40 is a light, vivid yellow. Relative luminance 0.467; OKLCH L 76.8% C 0.150 H 116.2°. Best body text is #000000 at 10.35:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBF40 |
|---|---|
| RGB | rgb(175, 191, 64) |
| HSL | hsl(68, 50%, 50%) |
| HSV | hsv(68, 66%, 75%) |
| CMYK | cmyk(8.4%, 0%, 66.5%, 25.1%) |
| CIE-LAB | lab(74.03, -22.19, 59.57) |
| CIE-LCH | lch(74.03, 63.57, 110.43°) |
| OKLab | oklab(76.85% -0.0661 0.1344) |
| OKLCH | oklch(76.85% 0.15 116.2) |
| XYZ | xyz(37.2363, 46.7462, 11.9108) |
| Luminance | 0.4675 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.96
Sick Green
#9DB92C
ΔE00 3.37
Snot
#ACBB0D
ΔE00 3.52
Gross Green
#A0BF16
ΔE00 3.71
Booger
#9BB53C
ΔE00 4.11
Bright Olive
#9CBB04
ΔE00 4.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBF40 #5040BF
analogous
#BF8F40 #AFBF40 #70BF40
triadic
#AFBF40 #40AFBF #BF40AF
tetradic
#AFBF40 #40BF8F #5040BF #BF4070
square
#AFBF40 #40BF8F #5040BF #BF4070
split-complementary
#AFBF40 #4070BF #8F40BF
monochromatic
#5B6321 #859131 #AFBF40 #C2CE6E #D5DE9C
Accessibility & contrast
On white
2.03
#AFBF40 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.35
#AFBF40 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBF40
10.35:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBF40 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBF40 | 1.00 | 2.03 | 10.35 | 10.35 |
| #FFFFFF | 2.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.35 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.35 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CCB52E
Deuteranopia (green-blind)
#CBB749
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B6B6B6
Design tokens & code
CSS
--color: #afbf40; /* rgb */ color: rgb(175, 191, 64); /* oklch */ color: oklch(76.8% 0.150 116.2);
Tailwind
colors: {
custom: {
50: '#cad27c',
500: '#afbf40',
950: '#000000',
},
}SCSS
$custom: #afbf40; $custom-light: #cad27c; $custom-dark: #000000;
JSON
{
"hex": "#afbf40",
"rgb": {
"r": 175,
"g": 191,
"b": 64
},
"hsl": {
"h": 67.559,
"s": 49.804,
"l": 50
},
"oklch": {
"l": 0.76847,
"c": 0.14975,
"h": 116.2
},
"luminance": 0.46746
}Semantic roles & 50–950 ramp
primary
#AFBF40
secondary
#9891CA
accent
#4ED960
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#14140A
muted
#82827C