#B1AA31#B1AA31
#B1AA31 is a light, vivid yellow. Relative luminance 0.383; OKLCH L 72.2% C 0.137 H 106.0°. Best body text is #000000 at 8.66:1 contrast (WCAG AA passes).
Color values
| HEX | #B1AA31 |
|---|---|
| RGB | rgb(177, 170, 49) |
| HSL | hsl(57, 57%, 44%) |
| HSV | hsv(57, 72%, 69%) |
| CMYK | cmyk(0%, 4%, 72.3%, 30.6%) |
| CIE-LAB | lab(68.26, -11.53, 59.59) |
| CIE-LCH | lch(68.26, 60.70, 100.95°) |
| OKLab | oklab(72.24% -0.0379 0.1318) |
| OKLCH | oklch(72.24% 0.137 106) |
| XYZ | xyz(33.0619, 38.3195, 8.5600) |
| Luminance | 0.3832 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.33
Vomit
#A2A415
ΔE00 3.48
Muddy Yellow
#BFAC05
ΔE00 4.59
Olive Yellow
#C2B709
ΔE00 5.24
Mustard Green
#A8B504
ΔE00 5.69
Puke Yellow
#C2BE0E
ΔE00 6.41
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B1AA31 #3138B1
analogous
#B16A31 #B1AA31 #78B131
triadic
#B1AA31 #31B1AA #AA31B1
tetradic
#B1AA31 #31B16A #3138B1 #B13178
square
#B1AA31 #31B16A #3138B1 #B13178
split-complementary
#B1AA31 #3178B1 #6A31B1
monochromatic
#514E16 #817C24 #B1AA31 #CFC851 #DCD780
Accessibility & contrast
On white
2.42
#B1AA31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.66
#B1AA31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B1AA31
8.66:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B1AA31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B1AA31 | 1.00 | 2.42 | 8.66 | 8.66 |
| #FFFFFF | 2.42 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.66 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.66 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B9A41B
Deuteranopia (green-blind)
#BCA93A
Tritanopia (blue-blind)
#BE9E92
Achromatopsia (no color)
#A6A6A6
Design tokens & code
CSS
--color: #b1aa31; /* rgb */ color: rgb(177, 170, 49); /* oklch */ color: oklch(72.2% 0.137 106.0);
Tailwind
colors: {
custom: {
50: '#ccc372',
500: '#b1aa31',
950: '#000000',
},
}SCSS
$custom: #b1aa31; $custom-light: #ccc372; $custom-dark: #000000;
JSON
{
"hex": "#b1aa31",
"rgb": {
"r": 177,
"g": 170,
"b": 49
},
"hsl": {
"h": 56.719,
"s": 56.637,
"l": 44.314
},
"oklch": {
"l": 0.72238,
"c": 0.13717,
"h": 106
},
"luminance": 0.38318
}Semantic roles & 50–950 ramp
primary
#B1AA31
secondary
#797DC5
accent
#50E048
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B