#B5AE31#B5AE31
#B5AE31 is a light, vivid yellow. Relative luminance 0.403; OKLCH L 73.5% C 0.140 H 106.1°. Best body text is #000000 at 9.06:1 contrast (WCAG AA passes).
Color values
| HEX | #B5AE31 |
|---|---|
| RGB | rgb(181, 174, 49) |
| HSL | hsl(57, 57%, 45%) |
| HSV | hsv(57, 73%, 71%) |
| CMYK | cmyk(0%, 3.9%, 72.9%, 29%) |
| CIE-LAB | lab(69.70, -11.86, 61.09) |
| CIE-LCH | lch(69.70, 62.23, 100.99°) |
| OKLab | oklab(73.47% -0.039 0.1349) |
| OKLCH | oklch(73.47% 0.14 106.1) |
| XYZ | xyz(34.7479, 40.3189, 8.8571) |
| Luminance | 0.4032 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Puke
#A5A502
ΔE00 3.91
Muddy Yellow
#BFAC05
ΔE00 4.20
Olive Yellow
#C2B709
ΔE00 4.21
Vomit
#A2A415
ΔE00 4.22
Mustard Green
#A8B504
ΔE00 5.22
Puke Yellow
#C2BE0E
ΔE00 5.27
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5AE31 #3138B5
analogous
#B56C31 #B5AE31 #7AB531
triadic
#B5AE31 #31B5AE #AE31B5
tetradic
#B5AE31 #31B56C #3138B5 #B5317A
square
#B5AE31 #31B56C #3138B5 #B5317A
split-complementary
#B5AE31 #317AB5 #6C31B5
monochromatic
#555117 #858024 #B5AE31 #D0CA53 #DDD983
Accessibility & contrast
On white
2.32
#B5AE31 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
9.06
#B5AE31 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5AE31
9.06:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5AE31 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5AE31 | 1.00 | 2.32 | 9.06 | 9.06 |
| #FFFFFF | 2.32 | 1.00 | 21.00 | 21.00 |
| #000000 | 9.06 | 21.00 | 1.00 | 1.00 |
| ##000000 | 9.06 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#BDA71A
Deuteranopia (green-blind)
#C0AD3A
Tritanopia (blue-blind)
#C2A296
Achromatopsia (no color)
#AAAAAA
Design tokens & code
CSS
--color: #b5ae31; /* rgb */ color: rgb(181, 174, 49); /* oklch */ color: oklch(73.5% 0.140 106.1);
Tailwind
colors: {
custom: {
50: '#cfc572',
500: '#b5ae31',
950: '#000000',
},
}SCSS
$custom: #b5ae31; $custom-light: #cfc572; $custom-dark: #000000;
JSON
{
"hex": "#b5ae31",
"rgb": {
"r": 181,
"g": 174,
"b": 49
},
"hsl": {
"h": 56.818,
"s": 57.391,
"l": 45.098
},
"oklch": {
"l": 0.73469,
"c": 0.14041,
"h": 106.1
},
"luminance": 0.40318
}Semantic roles & 50–950 ramp
primary
#B5AE31
secondary
#7B7FC7
accent
#4FE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141208
muted
#83817B