#AFBF38#AFBF38
#AFBF38 is a light, vivid yellow. Relative luminance 0.467; OKLCH L 76.8% C 0.155 H 116.1°. Best body text is #000000 at 10.33:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBF38 |
|---|---|
| RGB | rgb(175, 191, 56) |
| HSL | hsl(67, 55%, 48%) |
| HSV | hsv(67, 71%, 75%) |
| CMYK | cmyk(8.4%, 0%, 70.7%, 25.1%) |
| CIE-LAB | lab(73.97, -22.65, 62.55) |
| CIE-LCH | lch(73.97, 66.53, 109.90°) |
| OKLab | oklab(76.79% -0.0682 0.1394) |
| OKLCH | oklch(76.79% 0.155 116.1) |
| XYZ | xyz(37.0247, 46.6616, 10.7968) |
| Luminance | 0.4666 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.51
Snot
#ACBB0D
ΔE00 2.75
Gross Green
#A0BF16
ΔE00 3.29
Sick Green
#9DB92C
ΔE00 3.34
Bile
#B5C306
ΔE00 3.49
Baby Puke Green
#B6C406
ΔE00 3.63
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBF38 #4838BF
analogous
#BF8B38 #AFBF38 #6BBF38
triadic
#AFBF38 #38AFBF #BF38AF
tetradic
#AFBF38 #38BF8B #4838BF #BF386B
square
#AFBF38 #38BF8B #4838BF #BF386B
split-complementary
#AFBF38 #386BBF #8B38BF
monochromatic
#58601C #84902A #AFBF38 #C4D163 #D6DF92
Accessibility & contrast
On white
2.03
#AFBF38 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.33
#AFBF38 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBF38
10.33:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBF38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBF38 | 1.00 | 2.03 | 10.33 | 10.33 |
| #FFFFFF | 2.03 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.33 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.33 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CCB521
Deuteranopia (green-blind)
#CBB743
Tritanopia (blue-blind)
#BAB4A5
Achromatopsia (no color)
#B6B6B6
Design tokens & code
CSS
--color: #afbf38; /* rgb */ color: rgb(175, 191, 56); /* oklch */ color: oklch(76.8% 0.155 116.1);
Tailwind
colors: {
custom: {
50: '#cad277',
500: '#afbf38',
950: '#000000',
},
}SCSS
$custom: #afbf38; $custom-light: #cad277; $custom-dark: #000000;
JSON
{
"hex": "#afbf38",
"rgb": {
"r": 175,
"g": 191,
"b": 56
},
"hsl": {
"h": 67.111,
"s": 54.656,
"l": 48.431
},
"oklch": {
"l": 0.76786,
"c": 0.15514,
"h": 116.1
},
"luminance": 0.46661
}Semantic roles & 50–950 ramp
primary
#AFBF38
secondary
#9089CA
accent
#4ADE5B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B