#B5A040#B5A040

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

Color values

HEX#B5A040
RGBrgb(181, 160, 64)
HSLhsl(49, 48%, 48%)
HSVhsv(49, 65%, 71%)
CMYKcmyk(0%, 11.6%, 64.6%, 29%)
CIE-LABlab(66.01, -3.66, 51.30)
CIE-LCHlch(66.01, 51.43, 94.08°)
OKLaboklab(70.58% -0.0141 0.1167)
OKLCHoklch(70.58% 0.118 96.9)
XYZxyz(32.5537, 35.3371, 9.9555)
Luminance0.3534 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A040 #4055B5
analogous
#B56640 #B5A040 #8FB540
triadic
#B5A040 #40B5A0 #A040B5
tetradic
#B5A040 #40B566 #4055B5 #B5408F
square
#B5A040 #40B566 #4055B5 #B5408F
split-complementary
#B5A040 #408FB5 #6640B5
monochromatic
#5B5020 #887830 #B5A040 #CAB868 #DACE96

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A040#FFFFFF#000000##000000
##B5A0401.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)
#AF9C35
Deuteranopia (green-blind)
#B5A345
Tritanopia (blue-blind)
#C3958C
Achromatopsia (no color)
#A0A0A0

Design tokens & code

CSS
--color: #b5a040;
/* rgb */ color: rgb(181, 160, 64);
/* oklch */ color: oklch(70.6% 0.118 96.9);
Tailwind
colors: {
  custom: {
    50: '#cebb79',
    500: '#b5a040',
    950: '#000000',
  },
}
SCSS
$custom: #b5a040;
$custom-light: #cebb79;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a040",
  "rgb": {
    "r": 181,
    "g": 160,
    "b": 64
  },
  "hsl": {
    "h": 49.231,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.70577,
    "c": 0.11758,
    "h": 96.9
  },
  "luminance": 0.35336
}

Semantic roles & 50–950 ramp

primary
#B5A040
secondary
#8B96C5
accent
#69D750
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141109
muted
#83807B

Preview Lab

Preview with #B5A040

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

Preview Lab → · Contrast checker → · Palette generator →

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