#B5A862#B5A862
#B5A862 is a light, moderate yellow. Relative luminance 0.387; OKLCH L 72.7% C 0.092 H 99.0°. Best body text is #000000 at 8.74:1 contrast (WCAG AA passes).
Color values
| HEX | #B5A862 |
|---|---|
| RGB | rgb(181, 168, 98) |
| HSL | hsl(51, 36%, 55%) |
| HSV | hsv(51, 46%, 71%) |
| CMYK | cmyk(0%, 7.2%, 45.9%, 29%) |
| CIE-LAB | lab(68.54, -5.12, 37.72) |
| CIE-LCH | lch(68.54, 38.06, 97.74°) |
| OKLab | oklab(72.71% -0.0144 0.0909) |
| OKLCH | oklch(72.71% 0.092 99) |
| XYZ | xyz(35.2642, 38.7121, 17.1675) |
| Luminance | 0.3871 (WCAG relative) |
| Temperature | warm |
| Family | yellow |
Closest named colors
Khaki (survey)
#AAA662
ΔE00 3.04
Darkkhaki
#BDB76B
ΔE00 4.46
Sandy Brown
#C4A661
ΔE00 5.47
Sand
#C2B280
ΔE00 5.60
Desert
#CCAD60
ΔE00 6.03
Sandstone
#C9AE74
ΔE00 6.12
Perceptual scales
Shades
Tints
Tones
OKLCH scale
Color harmonies
complementary
#B5A862 #626FB5
analogous
#B57E62 #B5A862 #99B562
triadic
#B5A862 #62B5A8 #A862B5
tetradic
#B5A862 #62B57E #626FB5 #B56299
square
#B5A862 #62B57E #626FB5 #B56299
split-complementary
#B5A862 #6299B5 #7E62B5
monochromatic
#6A6232 #948846 #B5A862 #C9BF8C #DCD6B5
Accessibility & contrast
On white
2.40
#B5A862 on #FFFFFF
AA ✗AA large ✗AAA ✗
On black
8.74
#B5A862 on #000000
AA ✓AA large ✓AAA ✓
Best text color
#000000 on #B5A862
8.74:1 — WCAG AA (normal text) passes
Contrast matrix
| fg \ bg | ##B5A862 | #FFFFFF | #000000 | ##000000 |
|---|---|---|---|---|
| ##B5A862 | 1.00 | 2.40 | 8.74 | 8.74 |
| #FFFFFF | 2.40 | 1.00 | 21.00 | 21.00 |
| #000000 | 8.74 | 21.00 | 1.00 | 1.00 |
| ##000000 | 8.74 | 21.00 | 1.00 | 1.00 |
Color blindness preview
Protanopia (red-blind)
#B4A45C
Deuteranopia (green-blind)
#B8A965
Tritanopia (blue-blind)
#C09F97
Achromatopsia (no color)
#A7A7A7
Design tokens & code
CSS
--color: #b5a862; /* rgb */ color: rgb(181, 168, 98); /* oklch */ color: oklch(72.7% 0.092 99.0);
Tailwind
colors: {
custom: {
50: '#cdc190',
500: '#b5a862',
950: '#000000',
},
}SCSS
$custom: #b5a862; $custom-light: #cdc190; $custom-dark: #000000;
JSON
{
"hex": "#b5a862",
"rgb": {
"r": 181,
"g": 168,
"b": 98
},
"hsl": {
"h": 50.602,
"s": 35.931,
"l": 54.706
},
"oklch": {
"l": 0.72705,
"c": 0.09203,
"h": 99
},
"luminance": 0.38711
}Semantic roles & 50–950 ramp
primary
#B5A862
secondary
#A8ADCB
accent
#6DCC5C
background
#FCFBF8
surface
#F9F7F0
border
#D2D0CB
text
#14120C
muted
#82817D