#B5A540#B5A540

#B5A540 is a light, vivid yellow. Relative luminance 0.371; OKLCH L 71.6% C 0.122 H 100.3°. Best body text is #000000 at 8.42:1 contrast (WCAG AA passes).

Color values

HEX#B5A540
RGBrgb(181, 165, 64)
HSLhsl(52, 48%, 48%)
HSVhsv(52, 65%, 71%)
CMYKcmyk(0%, 8.8%, 64.6%, 29%)
CIE-LABlab(67.36, -6.32, 52.74)
CIE-LCHlch(67.36, 53.11, 96.84°)
OKLaboklab(71.64% -0.0217 0.1198)
OKLCHoklch(71.64% 0.122 100.3)
XYZxyz(33.4380, 37.1056, 10.2503)
Luminance0.3710 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A540 #4050B5
analogous
#B56A40 #B5A540 #8AB540
triadic
#B5A540 #40B5A5 #A540B5
tetradic
#B5A540 #40B56A #4050B5 #B5408A
square
#B5A540 #40B56A #4050B5 #B5408A
split-complementary
#B5A540 #408AB5 #6A40B5
monochromatic
#5B5320 #887C30 #B5A540 #CABC68 #DAD096

Accessibility & contrast

On white

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

On black

8.42
#B5A540 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A540
8.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A540#FFFFFF#000000##000000
##B5A5401.002.498.428.42
#FFFFFF2.491.0021.0021.00
#0000008.4221.001.001.00
##0000008.4221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a540;
/* rgb */ color: rgb(181, 165, 64);
/* oklch */ color: oklch(71.6% 0.122 100.3);
Tailwind
colors: {
  custom: {
    50: '#cebf7a',
    500: '#b5a540',
    950: '#000000',
  },
}
SCSS
$custom: #b5a540;
$custom-light: #cebf7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a540",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 64
  },
  "hsl": {
    "h": 51.795,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.71643,
    "c": 0.12173,
    "h": 100.3
  },
  "luminance": 0.37104
}

Semantic roles & 50–950 ramp

primary
#B5A540
secondary
#8B93C5
accent
#63D750
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A540

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

Preview Lab → · Contrast checker → · Palette generator →

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