#B5A042#B5A042

#B5A042 is a light, moderate yellow. Relative luminance 0.354; OKLCH L 70.6% C 0.116 H 96.7°. Best body text is #000000 at 8.07:1 contrast (WCAG AA passes).

Color values

HEX#B5A042
RGBrgb(181, 160, 66)
HSLhsl(49, 47%, 48%)
HSVhsv(49, 64%, 71%)
CMYKcmyk(0%, 11.6%, 63.5%, 29%)
CIE-LABlab(66.03, -3.53, 50.42)
CIE-LCHlch(66.03, 50.54, 94.01°)
OKLaboklab(70.6% -0.0135 0.1152)
OKLCHoklch(70.6% 0.116 96.7)
XYZxyz(32.6117, 35.3603, 10.2606)
Luminance0.3536 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A042 #4257B5
analogous
#B56642 #B5A042 #90B542
triadic
#B5A042 #42B5A0 #A042B5
tetradic
#B5A042 #42B566 #4257B5 #B54290
square
#B5A042 #42B566 #4257B5 #B54290
split-complementary
#B5A042 #4290B5 #6642B5
monochromatic
#5B5121 #887832 #B5A042 #C9B86B #D9CD98

Accessibility & contrast

On white

2.60
#B5A042 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.07
#B5A042 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A042
8.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A042#FFFFFF#000000##000000
##B5A0421.002.608.078.07
#FFFFFF2.601.0021.0021.00
#0000008.0721.001.001.00
##0000008.0721.001.001.00

Color blindness preview

Protanopia (red-blind)
#AF9C37
Deuteranopia (green-blind)
#B5A347
Tritanopia (blue-blind)
#C3958C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b5a042;
/* rgb */ color: rgb(181, 160, 66);
/* oklch */ color: oklch(70.6% 0.116 96.7);
Tailwind
colors: {
  custom: {
    50: '#cebb7a',
    500: '#b5a042',
    950: '#000000',
  },
}
SCSS
$custom: #b5a042;
$custom-light: #cebb7a;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a042",
  "rgb": {
    "r": 181,
    "g": 160,
    "b": 66
  },
  "hsl": {
    "h": 49.043,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.70597,
    "c": 0.11595,
    "h": 96.7
  },
  "luminance": 0.35359
}

Semantic roles & 50–950 ramp

primary
#B5A042
secondary
#8E98C5
accent
#6AD652
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B5A042

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

Preview Lab → · Contrast checker → · Palette generator →

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