#AFBF51#AFBF51
#AFBF51 is a light, vivid yellow. Relative luminance 0.470; OKLCH L 77.0% C 0.136 H 116.6°. Best body text is #000000 at 10.39:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBF51 |
|---|---|
| RGB | rgb(175, 191, 81) |
| HSL | hsl(69, 46%, 53%) |
| HSV | hsv(69, 58%, 75%) |
| CMYK | cmyk(8.4%, 0%, 57.6%, 25.1%) |
| CIE-LAB | lab(74.17, -20.98, 52.50) |
| CIE-LCH | lch(74.17, 56.54, 111.79°) |
| OKLab | oklab(77.01% -0.061 0.1217) |
| OKLCH | oklch(77.01% 0.136 116.6) |
| XYZ | xyz(37.7959, 46.9701, 14.8580) |
| Luminance | 0.4697 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Light Olive Green
#A4BE5C
ΔE00 3.35
Light Olive
#ACBF69
ΔE00 3.91
Booger
#9BB53C
ΔE00 4.01
Sick Green
#9DB92C
ΔE00 4.25
Pea
#A4BF20
ΔE00 4.60
Gross Green
#A0BF16
ΔE00 5.21
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBF51 #6151BF
analogous
#BF9851 #AFBF51 #78BF51
triadic
#AFBF51 #51AFBF #BF51AF
tetradic
#AFBF51 #51BF98 #6151BF #BF5178
square
#AFBF51 #51BF98 #6151BF #BF5178
split-complementary
#AFBF51 #5178BF #9851BF
monochromatic
#636D28 #8C9A39 #AFBF51 #C4CF7E #D8E0AA
Accessibility & contrast
On white
2.02
#AFBF51 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.39
#AFBF51 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBF51
10.39:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBF51 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBF51 | 1.00 | 2.02 | 10.39 | 10.39 |
| #FFFFFF | 2.02 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.39 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.39 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CBB645
Deuteranopia (green-blind)
#C9B758
Tritanopia (blue-blind)
#B9B5A7
Achromatopsia (no color)
#B6B6B6
Design tokens & code
CSS
--color: #afbf51; /* rgb */ color: rgb(175, 191, 81); /* oklch */ color: oklch(77.0% 0.136 116.6);
Tailwind
colors: {
custom: {
50: '#c9d286',
500: '#afbf51',
950: '#000000',
},
}SCSS
$custom: #afbf51; $custom-light: #c9d286; $custom-dark: #000000;
JSON
{
"hex": "#afbf51",
"rgb": {
"r": 175,
"g": 191,
"b": 81
},
"hsl": {
"h": 68.727,
"s": 46.218,
"l": 53.333
},
"oklch": {
"l": 0.77008,
"c": 0.13614,
"h": 116.6
},
"luminance": 0.4697
}Semantic roles & 50–950 ramp
primary
#AFBF51
secondary
#A59ECE
accent
#52D665
background
#FCFCF8
surface
#F9F9F0
border
#D2D2CB
text
#13140B
muted
#82827C