#AFBE38#AFBE38
#AFBE38 is a light, vivid yellow. Relative luminance 0.462; OKLCH L 76.6% C 0.154 H 115.7°. Best body text is #000000 at 10.25:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBE38 |
|---|---|
| RGB | rgb(175, 190, 56) |
| HSL | hsl(67, 54%, 48%) |
| HSV | hsv(67, 71%, 75%) |
| CMYK | cmyk(7.9%, 0%, 70.5%, 25.5%) |
| CIE-LAB | lab(73.69, -22.16, 62.28) |
| CIE-LCH | lch(73.69, 66.10, 109.58°) |
| OKLab | oklab(76.56% -0.0668 0.1388) |
| OKLCH | oklch(76.56% 0.154 115.7) |
| XYZ | xyz(36.8074, 46.2270, 10.7243) |
| Luminance | 0.4623 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Pea
#A4BF20
ΔE00 2.66
Snot
#ACBB0D
ΔE00 2.67
Sick Green
#9DB92C
ΔE00 3.37
Gross Green
#A0BF16
ΔE00 3.45
Mustard Green
#A8B504
ΔE00 3.53
Bile
#B5C306
ΔE00 3.55
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBE38 #4738BE
analogous
#BE8A38 #AFBE38 #6CBE38
triadic
#AFBE38 #38AFBE #BE38AF
tetradic
#AFBE38 #38BE8A #4738BE #BE386C
square
#AFBE38 #38BE8A #4738BE #BE386C
split-complementary
#AFBE38 #386CBE #8A38BE
monochromatic
#585F1C #838F2A #AFBE38 #C4D162 #D6DF92
Accessibility & contrast
On white
2.05
#AFBE38 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.25
#AFBE38 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBE38
10.25:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBE38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBE38 | 1.00 | 2.05 | 10.25 | 10.25 |
| #FFFFFF | 2.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.25 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.25 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CBB421
Deuteranopia (green-blind)
#CAB643
Tritanopia (blue-blind)
#BAB3A4
Achromatopsia (no color)
#B5B5B5
Design tokens & code
CSS
--color: #afbe38; /* rgb */ color: rgb(175, 190, 56); /* oklch */ color: oklch(76.6% 0.154 115.7);
Tailwind
colors: {
custom: {
50: '#cad177',
500: '#afbe38',
950: '#000000',
},
}SCSS
$custom: #afbe38; $custom-light: #cad177; $custom-dark: #000000;
JSON
{
"hex": "#afbe38",
"rgb": {
"r": 175,
"g": 190,
"b": 56
},
"hsl": {
"h": 66.716,
"s": 54.472,
"l": 48.235
},
"oklch": {
"l": 0.76561,
"c": 0.15402,
"h": 115.7
},
"luminance": 0.46226
}Semantic roles & 50–950 ramp
primary
#AFBE38
secondary
#8F88CA
accent
#4ADE5B
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141409
muted
#82827B