#AFBE31#AFBE31
#AFBE31 is a light, vivid yellow. Relative luminance 0.462; OKLCH L 76.5% C 0.158 H 115.6°. Best body text is #000000 at 10.23:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBE31 |
|---|---|
| RGB | rgb(175, 190, 49) |
| HSL | hsl(66, 59%, 47%) |
| HSV | hsv(66, 74%, 75%) |
| CMYK | cmyk(7.9%, 0%, 74.2%, 25.5%) |
| CIE-LAB | lab(73.65, -22.51, 64.68) |
| CIE-LCH | lch(73.65, 68.49, 109.19°) |
| OKLab | oklab(76.52% -0.0684 0.1427) |
| OKLCH | oklch(76.52% 0.158 115.6) |
| XYZ | xyz(36.6480, 46.1632, 9.8849) |
| Luminance | 0.4616 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.07
Pea
#A4BF20
ΔE00 2.47
Bile
#B5C306
ΔE00 2.97
Mustard Green
#A8B504
ΔE00 3.09
Baby Puke Green
#B6C406
ΔE00 3.15
Gross Green
#A0BF16
ΔE00 3.25
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBE31 #4031BE
analogous
#BE8731 #AFBE31 #69BE31
triadic
#AFBE31 #31AFBE #BE31AF
tetradic
#AFBE31 #31BE87 #4031BE #BE3169
square
#AFBE31 #31BE87 #4031BE #BE3169
split-complementary
#AFBE31 #3169BE #8731BE
monochromatic
#555D18 #828D24 #AFBE31 #C7D458 #D7E189
Accessibility & contrast
On white
2.05
#AFBE31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
10.23
#AFBE31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBE31
10.23:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBE31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBE31 | 1.00 | 2.05 | 10.23 | 10.23 |
| #FFFFFF | 2.05 | 1.00 | 21.00 | 21.00 |
| #000000 | 10.23 | 21.00 | 1.00 | 1.00 |
| ##000000 | 10.23 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#CCB412
Deuteranopia (green-blind)
#CAB63D
Tritanopia (blue-blind)
#BAB3A3
Achromatopsia (no color)
#B5B5B5
Design tokens & code
CSS
--color: #afbe31; /* rgb */ color: rgb(175, 190, 49); /* oklch */ color: oklch(76.5% 0.158 115.6);
Tailwind
colors: {
custom: {
50: '#cad174',
500: '#afbe31',
950: '#000000',
},
}SCSS
$custom: #afbe31; $custom-light: #cad174; $custom-dark: #000000;
JSON
{
"hex": "#afbe31",
"rgb": {
"r": 175,
"g": 190,
"b": 49
},
"hsl": {
"h": 66.383,
"s": 58.996,
"l": 46.863
},
"oklch": {
"l": 0.76515,
"c": 0.15822,
"h": 115.6
},
"luminance": 0.46163
}Semantic roles & 50–950 ramp
primary
#AFBE31
secondary
#8880CA
accent
#46E256
background
#FCFCF7
surface
#F9F9ED
border
#D2D2C8
text
#141409
muted
#82827B