#AFB831#AFB831
#AFB831 is a light, vivid yellow. Relative luminance 0.436; OKLCH L 75.2% C 0.152 H 113.3°. Best body text is #000000 at 9.72:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB831 |
|---|---|
| RGB | rgb(175, 184, 49) |
| HSL | hsl(64, 58%, 46%) |
| HSV | hsv(64, 73%, 72%) |
| CMYK | cmyk(4.9%, 0%, 73.4%, 27.8%) |
| CIE-LAB | lab(71.97, -19.53, 63.09) |
| CIE-LCH | lch(71.97, 66.05, 107.20°) |
| OKLab | oklab(75.17% -0.0601 0.1393) |
| OKLCH | oklch(75.17% 0.152 113.3) |
| XYZ | xyz(35.3751, 43.6174, 9.4607) |
| Luminance | 0.4362 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Snot
#ACBB0D
ΔE00 2.39
Mustard Green
#A8B504
ΔE00 2.39
Pea
#A4BF20
ΔE00 3.90
Bile
#B5C306
ΔE00 3.93
Baby Puke Green
#B6C406
ΔE00 4.15
Sick Green
#9DB92C
ΔE00 4.18
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB831 #3A31B8
analogous
#B87D31 #AFB831 #6BB831
triadic
#AFB831 #31AFB8 #B831AF
tetradic
#AFB831 #31B87D #3A31B8 #B8316B
square
#AFB831 #31B87D #3A31B8 #B8316B
split-complementary
#AFB831 #316BB8 #7D31B8
monochromatic
#535717 #818824 #AFB831 #C9D255 #D9DE85
Accessibility & contrast
On white
2.16
#AFB831 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.72
#AFB831 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB831
9.72:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB831 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB831 | 1.00 | 2.16 | 9.72 | 9.72 |
| #FFFFFF | 2.16 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.72 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.72 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C6B23C
Tritanopia (blue-blind)
#BBAD9E
Achromatopsia (no color)
#B0B0B0
Design tokens & code
CSS
--color: #afb831; /* rgb */ color: rgb(175, 184, 49); /* oklch */ color: oklch(75.2% 0.152 113.3);
Tailwind
colors: {
custom: {
50: '#cacd73',
500: '#afb831',
950: '#000000',
},
}SCSS
$custom: #afb831; $custom-light: #cacd73; $custom-dark: #000000;
JSON
{
"hex": "#afb831",
"rgb": {
"r": 175,
"g": 184,
"b": 49
},
"hsl": {
"h": 64,
"s": 57.94,
"l": 45.686
},
"oklch": {
"l": 0.75168,
"c": 0.15174,
"h": 113.3
},
"luminance": 0.43617
}Semantic roles & 50–950 ramp
primary
#AFB831
secondary
#827DC8
accent
#47E151
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B