#B5A640#B5A640

#B5A640 is a light, vivid yellow. Relative luminance 0.375; OKLCH L 71.9% C 0.123 H 100.9°. Best body text is #000000 at 8.49:1 contrast (WCAG AA passes).

Color values

HEX#B5A640
RGBrgb(181, 166, 64)
HSLhsl(52, 48%, 48%)
HSVhsv(52, 65%, 71%)
CMYKcmyk(0%, 8.3%, 64.6%, 29%)
CIE-LABlab(67.63, -6.85, 53.02)
CIE-LCHlch(67.63, 53.46, 97.36°)
OKLaboklab(71.86% -0.0232 0.1204)
OKLCHoklch(71.86% 0.123 100.9)
XYZxyz(33.6191, 37.4678, 10.3106)
Luminance0.3747 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A640 #404FB5
analogous
#B56C40 #B5A640 #89B540
triadic
#B5A640 #40B5A6 #A640B5
tetradic
#B5A640 #40B56C #404FB5 #B54089
square
#B5A640 #40B56C #404FB5 #B54089
split-complementary
#B5A640 #4089B5 #6C40B5
monochromatic
#5B5320 #887D30 #B5A640 #CABD68 #DAD196

Accessibility & contrast

On white

2.47
#B5A640 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.49
#B5A640 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A640
8.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A640#FFFFFF#000000##000000
##B5A6401.002.478.498.49
#FFFFFF2.471.0021.0021.00
#0000008.4921.001.001.00
##0000008.4921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A134
Deuteranopia (green-blind)
#B9A746
Tritanopia (blue-blind)
#C29B91
Achromatopsia (no color)
#A5A5A5

Design tokens & code

CSS
--color: #b5a640;
/* rgb */ color: rgb(181, 166, 64);
/* oklch */ color: oklch(71.9% 0.123 100.9);
Tailwind
colors: {
  custom: {
    50: '#cec07a',
    500: '#b5a640',
    950: '#000000',
  },
}
SCSS
$custom: #b5a640;
$custom-light: #cec07a;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a640",
  "rgb": {
    "r": 181,
    "g": 166,
    "b": 64
  },
  "hsl": {
    "h": 52.308,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.71858,
    "c": 0.12261,
    "h": 100.9
  },
  "luminance": 0.37466
}

Semantic roles & 50–950 ramp

primary
#B5A640
secondary
#8B93C5
accent
#62D750
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A640

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

Preview Lab → · Contrast checker → · Palette generator →

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