#AFB837#AFB837
#AFB837 is a light, vivid yellow. Relative luminance 0.437; OKLCH L 75.2% C 0.148 H 113.4°. Best body text is #000000 at 9.73:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB837 |
|---|---|
| RGB | rgb(175, 184, 55) |
| HSL | hsl(64, 54%, 47%) |
| HSV | hsv(64, 70%, 72%) |
| CMYK | cmyk(4.9%, 0%, 70.1%, 27.8%) |
| CIE-LAB | lab(72.01, -19.23, 60.99) |
| CIE-LCH | lch(72.01, 63.95, 107.50°) |
| OKLab | oklab(75.21% -0.0587 0.1359) |
| OKLCH | oklch(75.21% 0.148 113.4) |
| XYZ | xyz(35.5103, 43.6715, 10.1725) |
| Luminance | 0.4367 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.87
Mustard Green
#A8B504
ΔE00 2.88
Pea
#A4BF20
ΔE00 4.02
Sick Green
#9DB92C
ΔE00 4.11
Bile
#B5C306
ΔE00 4.33
Puke Green
#9AAE07
ΔE00 4.45
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB837 #4037B8
analogous
#B88137 #AFB837 #6FB837
triadic
#AFB837 #37AFB8 #B837AF
tetradic
#AFB837 #37B881 #4037B8 #B8376F
square
#AFB837 #37B881 #4037B8 #B8376F
split-complementary
#AFB837 #376FB8 #8137B8
monochromatic
#555A1B #828929 #AFB837 #C7CF5D #D7DD8D
Accessibility & contrast
On white
2.16
#AFB837 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.73
#AFB837 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB837
9.73:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB837 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB837 | 1.00 | 2.16 | 9.73 | 9.73 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.73 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.73 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6AF21
Deuteranopia (green-blind)
#C5B241
Tritanopia (blue-blind)
#BBAD9F
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb837; /* rgb */ color: rgb(175, 184, 55); /* oklch */ color: oklch(75.2% 0.148 113.4);
Tailwind
colors: {
custom: {
50: '#cacd76',
500: '#afb837',
950: '#000000',
},
}SCSS
$custom: #afb837; $custom-light: #cacd76; $custom-dark: #000000;
JSON
{
"hex": "#afb837",
"rgb": {
"r": 175,
"g": 184,
"b": 55
},
"hsl": {
"h": 64.186,
"s": 53.975,
"l": 46.863
},
"oklch": {
"l": 0.75209,
"c": 0.14806,
"h": 113.4
},
"luminance": 0.43671
}Semantic roles & 50–950 ramp
primary
#AFB837
secondary
#8884C7
accent
#4ADD55
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B