#AFBF34#AFBF34
#AFBF34 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.8% C 0.158 H 116.0°. Best body text is #000000 at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBF34 |
|---|---|
| RGB | rgb(175, 191, 52) |
| HSL | hsl(67, 57%, 48%) |
| HSV | hsv(67, 73%, 75%) |
| CMYK | cmyk(8.4%, 0%, 72.8%, 25.1%) |
| CIE-LAB | lab(73.95, -22.85, 63.95) |
| CIE-LCH | lch(73.95, 67.91, 109.67°) |
| OKLab | oklab(76.76% -0.0691 0.1416) |
| OKLCH | oklch(76.76% 0.158 116) |
| XYZ | xyz(36.9308, 46.6240, 10.3020) |
| Luminance | 0.4662 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.37
Snot
#ACBB0D
ΔE00 2.41
Bile
#B5C306
ΔE00 3.14
Gross Green
#A0BF16
ΔE00 3.16
Baby Puke Green
#B6C406
ΔE00 3.30
Sick Green
#9DB92C
ΔE00 3.40
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBF34 #4434BF
analogous
#BF8934 #AFBF34 #6ABF34
triadic
#AFBF34 #34AFBF #BF34AF
tetradic
#AFBF34 #34BF89 #4434BF #BF346A
square
#AFBF34 #34BF89 #4434BF #BF346A
split-complementary
#AFBF34 #346ABF #8934BF
monochromatic
#575F1A #838F27 #AFBF34 #C5D35D #D7E08D
Accessibility & contrast
On white
2.03
#AFBF34 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.32
#AFBF34 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBF34
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBF34 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBF34 | 1.00 | 2.03 | 10.32 | 10.32 |
| #FFFFFF | 2.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.32 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.32 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CCB518
Deuteranopia (green-blind)
#CBB740
Tritanopia (blue-blind)
#BAB4A4
Achromatopsia (no color)
#B6B6B6
Design tokens & code
CSS
--color: #afbf34; /* rgb */ color: rgb(175, 191, 52); /* oklch */ color: oklch(76.8% 0.158 116.0);
Tailwind
colors: {
custom: {
50: '#cad275',
500: '#afbf34',
950: '#000000',
},
}SCSS
$custom: #afbf34; $custom-light: #cad275; $custom-dark: #000000;
JSON
{
"hex": "#afbf34",
"rgb": {
"r": 175,
"g": 191,
"b": 52
},
"hsl": {
"h": 66.906,
"s": 57.202,
"l": 47.647
},
"oklch": {
"l": 0.76759,
"c": 0.15759,
"h": 116
},
"luminance": 0.46623
}Semantic roles & 50–950 ramp
primary
#AFBF34
secondary
#8C84CA
accent
#47E059
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B