#B5A545#B5A545

#B5A545 is a light, moderate yellow. Relative luminance 0.372; OKLCH L 71.7% C 0.118 H 99.9°. Best body text is #000000 at 8.43:1 contrast (WCAG AA passes).

Color values

HEX#B5A545
RGBrgb(181, 165, 69)
HSLhsl(51, 45%, 49%)
HSVhsv(51, 62%, 71%)
CMYKcmyk(0%, 8.8%, 61.9%, 29%)
CIE-LABlab(67.40, -5.99, 50.55)
CIE-LCHlch(67.40, 50.91, 96.76°)
OKLaboklab(71.69% -0.0202 0.1159)
OKLCHoklch(71.69% 0.118 99.9)
XYZxyz(33.5867, 37.1651, 11.0335)
Luminance0.3716 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A545 #4555B5
analogous
#B56D45 #B5A545 #8DB545
triadic
#B5A545 #45B5A5 #A545B5
tetradic
#B5A545 #45B56D #4555B5 #B5458D
square
#B5A545 #45B56D #4555B5 #B5458D
split-complementary
#B5A545 #458DB5 #6D45B5
monochromatic
#5C5423 #897D34 #B5A545 #C8BB6F #D9D09B

Accessibility & contrast

On white

2.49
#B5A545 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.43
#B5A545 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A545
8.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A545#FFFFFF#000000##000000
##B5A5451.002.498.438.43
#FFFFFF2.491.0021.0021.00
#0000008.4321.001.001.00
##0000008.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#B4A13A
Deuteranopia (green-blind)
#B8A74A
Tritanopia (blue-blind)
#C29A90
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a545;
/* rgb */ color: rgb(181, 165, 69);
/* oklch */ color: oklch(71.7% 0.118 99.9);
Tailwind
colors: {
  custom: {
    50: '#cebf7d',
    500: '#b5a545',
    950: '#000000',
  },
}
SCSS
$custom: #b5a545;
$custom-light: #cebf7d;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a545",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 69
  },
  "hsl": {
    "h": 51.429,
    "s": 44.8,
    "l": 49.02
  },
  "oklch": {
    "l": 0.71693,
    "c": 0.11763,
    "h": 99.9
  },
  "luminance": 0.37164
}

Semantic roles & 50–950 ramp

primary
#B5A545
secondary
#9198C5
accent
#66D553
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#14120A
muted
#83817C

Preview Lab

Preview with #B5A545

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#B5A545 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva