#B5A337#B5A337

#B5A337 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.127 H 99.6°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#B5A337
RGBrgb(181, 163, 55)
HSLhsl(51, 53%, 46%)
HSVhsv(51, 70%, 71%)
CMYKcmyk(0%, 9.9%, 69.6%, 29%)
CIE-LABlab(66.75, -5.79, 55.90)
CIE-LCHlch(66.75, 56.20, 95.92°)
OKLaboklab(71.14% -0.0212 0.125)
OKLCHoklch(71.14% 0.127 99.6)
XYZxyz(32.8443, 36.2955, 8.8894)
Luminance0.3629 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A337 #3749B5
analogous
#B56437 #B5A337 #88B537
triadic
#B5A337 #37B5A3 #A337B5
tetradic
#B5A337 #37B564 #3749B5 #B53788
square
#B5A337 #37B564 #3749B5 #B53788
split-complementary
#B5A337 #3788B5 #6437B5
monochromatic
#574E1A #867929 #B5A337 #CDBD5C #DCD08B

Accessibility & contrast

On white

2.54
#B5A337 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.26
#B5A337 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A337
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A337#FFFFFF#000000##000000
##B5A3371.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39F28
Deuteranopia (green-blind)
#B7A53D
Tritanopia (blue-blind)
#C3978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a337;
/* rgb */ color: rgb(181, 163, 55);
/* oklch */ color: oklch(71.1% 0.127 99.6);
Tailwind
colors: {
  custom: {
    50: '#cfbd74',
    500: '#b5a337',
    950: '#000000',
  },
}
SCSS
$custom: #b5a337;
$custom-light: #cfbd74;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a337",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 55
  },
  "hsl": {
    "h": 51.429,
    "s": 53.39,
    "l": 46.275
  },
  "oklch": {
    "l": 0.71136,
    "c": 0.12678,
    "h": 99.6
  },
  "luminance": 0.36294
}

Semantic roles & 50–950 ramp

primary
#B5A337
secondary
#828CC6
accent
#60DD4B
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A337

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

Preview Lab → · Contrast checker → · Palette generator →

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