#AFBA38#AFBA38
#AFBA38 is a light, vivid yellow. Relative luminance 0.445; OKLCH L 75.7% C 0.150 H 114.2°. Best body text is #000000 at 9.90:1 contrast (WCAG AA passes).
Color values
| HEX | #AFBA38 |
|---|---|
| RGB | rgb(175, 186, 56) |
| HSL | hsl(65, 54%, 47%) |
| HSV | hsv(65, 70%, 73%) |
| CMYK | cmyk(5.9%, 0%, 69.9%, 27.1%) |
| CIE-LAB | lab(72.57, -20.18, 61.17) |
| CIE-LCH | lch(72.57, 64.42, 108.25°) |
| OKLab | oklab(75.66% -0.0613 0.1365) |
| OKLCH | oklch(75.66% 0.15 114.2) |
| XYZ | xyz(35.9529, 44.5180, 10.4395) |
| Luminance | 0.4452 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.72
Mustard Green
#A8B504
ΔE00 3.04
Pea
#A4BF20
ΔE00 3.53
Sick Green
#9DB92C
ΔE00 3.76
Bile
#B5C306
ΔE00 4.04
Baby Puke Green
#B6C406
ΔE00 4.24
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFBA38 #4338BA
analogous
#BA8438 #AFBA38 #6EBA38
triadic
#AFBA38 #38AFBA #BA38AF
tetradic
#AFBA38 #38BA84 #4338BA #BA386E
square
#AFBA38 #38BA84 #4338BA #BA386E
split-complementary
#AFBA38 #386EBA #8438BA
monochromatic
#565C1C #838B2A #AFBA38 #C6CF60 #D7DD8F
Accessibility & contrast
On white
2.12
#AFBA38 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.90
#AFBA38 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFBA38
9.90:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFBA38 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFBA38 | 1.00 | 2.12 | 9.90 | 9.90 |
| #FFFFFF | 2.12 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.90 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.90 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C7B122
Deuteranopia (green-blind)
#C7B342
Tritanopia (blue-blind)
#BAAFA0
Achromatopsia (no color)
#B2B2B2
Design tokens & code
CSS
--color: #afba38; /* rgb */ color: rgb(175, 186, 56); /* oklch */ color: oklch(75.7% 0.150 114.2);
Tailwind
colors: {
custom: {
50: '#cace77',
500: '#afba38',
950: '#000000',
},
}SCSS
$custom: #afba38; $custom-light: #cace77; $custom-dark: #000000;
JSON
{
"hex": "#afba38",
"rgb": {
"r": 175,
"g": 186,
"b": 56
},
"hsl": {
"h": 65.077,
"s": 53.719,
"l": 47.451
},
"oklch": {
"l": 0.75664,
"c": 0.1496,
"h": 114.2
},
"luminance": 0.44517
}Semantic roles & 50–950 ramp
primary
#AFBA38
secondary
#8B86C8
accent
#4BDD57
background
#FCFCF7
surface
#F9F9EE
border
#D2D2C9
text
#141309
muted
#82827B