#AFBF31#AFBF31
#AFBF31 is a light, vivid yellow. Relative luminance 0.466; OKLCH L 76.7% C 0.159 H 116.0°. Best body text is #000000 at 10.32:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBF31 |
|---|---|
| RGB | rgb(175, 191, 49) |
| HSL | hsl(67, 59%, 47%) |
| HSV | hsv(67, 74%, 75%) |
| CMYK | cmyk(8.4%, 0%, 74.3%, 25.1%) |
| CIE-LAB | lab(73.93, -23.00, 64.95) |
| CIE-LCH | lch(73.93, 68.90, 109.50°) |
| OKLab | oklab(76.74% -0.0698 0.1432) |
| OKLCH | oklch(76.74% 0.159 116) |
| XYZ | xyz(36.8654, 46.5979, 9.9574) |
| Luminance | 0.4660 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.17
Pea
#A4BF20
ΔE00 2.30
Bile
#B5C306
ΔE00 2.90
Baby Puke Green
#B6C406
ΔE00 3.06
Gross Green
#A0BF16
ΔE00 3.09
Mustard Green
#A8B504
ΔE00 3.29
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBF31 #4131BF
analogous
#BF8831 #AFBF31 #68BF31
triadic
#AFBF31 #31AFBF #BF31AF
tetradic
#AFBF31 #31BF88 #4131BF #BF3168
square
#AFBF31 #31BF88 #4131BF #BF3168
split-complementary
#AFBF31 #3168BF #8831BF
monochromatic
#565E18 #828E25 #AFBF31 #C6D459 #D7E18A
Accessibility & contrast
On white
2.04
#AFBF31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.32
#AFBF31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBF31
10.32:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBF31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBF31 | 1.00 | 2.04 | 10.32 | 10.32 |
| #FFFFFF | 2.04 | 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)
#CDB511
Deuteranopia (green-blind)
#CBB73D
Tritanopia (blue-blind)
#BAB4A4
Achromatopsia (no color)
#B6B6B6
Design tokens & code
CSS
--color: #afbf31; /* rgb */ color: rgb(175, 191, 49); /* oklch */ color: oklch(76.7% 0.159 116.0);
Tailwind
colors: {
custom: {
50: '#cad274',
500: '#afbf31',
950: '#000000',
},
}SCSS
$custom: #afbf31; $custom-light: #cad274; $custom-dark: #000000;
JSON
{
"hex": "#afbf31",
"rgb": {
"r": 175,
"g": 191,
"b": 49
},
"hsl": {
"h": 66.761,
"s": 59.167,
"l": 47.059
},
"oklch": {
"l": 0.7674,
"c": 0.15932,
"h": 116
},
"luminance": 0.46597
}Semantic roles & 50–950 ramp
primary
#AFBF31
secondary
#8981CB
accent
#45E257
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B