#AFB631#AFB631
#AFB631 is a light, vivid yellow. Relative luminance 0.428; OKLCH L 74.7% C 0.150 H 112.5°. Best body text is #000000 at 9.56:1 contrast (WCAG AA passes).
Color values
| HEX | #AFB631 |
|---|---|
| RGB | rgb(175, 182, 49) |
| HSL | hsl(63, 58%, 45%) |
| HSV | hsv(63, 73%, 71%) |
| CMYK | cmyk(3.8%, 0%, 73.1%, 28.6%) |
| CIE-LAB | lab(71.41, -18.53, 62.56) |
| CIE-LCH | lch(71.41, 65.25, 106.50°) |
| OKLab | oklab(74.72% -0.0573 0.1382) |
| OKLCH | oklch(74.72% 0.15 112.5) |
| XYZ | xyz(34.9626, 42.7924, 9.3231) |
| Luminance | 0.4279 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Mustard Green
#A8B504
ΔE00 2.47
Snot
#ACBB0D
ΔE00 2.80
Puke Green
#9AAE07
ΔE00 4.23
Bile
#B5C306
ΔE00 4.39
Pea
#A4BF20
ΔE00 4.48
Sick Green
#9DB92C
ΔE00 4.58
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#AFB631 #3831B6
analogous
#B67A31 #AFB631 #6CB631
triadic
#AFB631 #31AFB6 #B631AF
tetradic
#AFB631 #31B67A #3831B6 #B6316C
square
#AFB631 #31B67A #3831B6 #B6316C
split-complementary
#AFB631 #316CB6 #7A31B6
monochromatic
#525617 #818624 #AFB631 #CAD153 #D9DE84
Accessibility & contrast
On white
2.20
#AFB631 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.56
#AFB631 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #AFB631
9.56:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##AFB631 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##AFB631 | 1.00 | 2.20 | 9.56 | 9.56 |
| #FFFFFF | 2.20 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.56 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.56 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#C4AD16
Deuteranopia (green-blind)
#C4B03C
Tritanopia (blue-blind)
#BBAB9C
Achromatopsia (no color)
#AFAFAF
Design tokens & code
CSS
--color: #afb631; /* rgb */ color: rgb(175, 182, 49); /* oklch */ color: oklch(74.7% 0.150 112.5);
Tailwind
colors: {
custom: {
50: '#cacb73',
500: '#afb631',
950: '#000000',
},
}SCSS
$custom: #afb631; $custom-light: #cacb73; $custom-dark: #000000;
JSON
{
"hex": "#afb631",
"rgb": {
"r": 175,
"g": 182,
"b": 49
},
"hsl": {
"h": 63.158,
"s": 57.576,
"l": 45.294
},
"oklch": {
"l": 0.74721,
"c": 0.14961,
"h": 112.5
},
"luminance": 0.42792
}Semantic roles & 50–950 ramp
primary
#AFB631
secondary
#807CC7
accent
#47E14F
background
#FCFCF7
surface
#F9F8ED
border
#D2D1C8
text
#141309
muted
#82827B