#B5AA40#B5AA40

#B5AA40 is a light, vivid yellow. Relative luminance 0.389; OKLCH L 72.7% C 0.126 H 103.4°. Best body text is #000000 at 8.79:1 contrast (WCAG AA passes).

Color values

HEX#B5AA40
RGBrgb(181, 170, 64)
HSLhsl(54, 48%, 48%)
HSVhsv(54, 65%, 71%)
CMYKcmyk(0%, 6.1%, 64.6%, 29%)
CIE-LABlab(68.71, -8.96, 54.17)
CIE-LCHlch(68.71, 54.91, 99.39°)
OKLaboklab(72.72% -0.0292 0.1228)
OKLCHoklch(72.72% 0.126 103.4)
XYZxyz(34.3575, 38.9447, 10.5568)
Luminance0.3894 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5AA40 #404BB5
analogous
#B56F40 #B5AA40 #85B540
triadic
#B5AA40 #40B5AA #AA40B5
tetradic
#B5AA40 #40B56F #404BB5 #B54085
square
#B5AA40 #40B56F #404BB5 #B54085
split-complementary
#B5AA40 #4085B5 #6F40B5
monochromatic
#5B5520 #888030 #B5AA40 #CAC168 #DAD396

Accessibility & contrast

On white

2.39
#B5AA40 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.79
#B5AA40 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5AA40
8.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5AA40#FFFFFF#000000##000000
##B5AA401.002.398.798.79
#FFFFFF2.391.0021.0021.00
#0000008.7921.001.001.00
##0000008.7921.001.001.00

Color blindness preview

Protanopia (red-blind)
#B9A533
Deuteranopia (green-blind)
#BCAA46
Tritanopia (blue-blind)
#C29F94
Achromatopsia (no color)
#A8A8A8

Design tokens & code

CSS
--color: #b5aa40;
/* rgb */ color: rgb(181, 170, 64);
/* oklch */ color: oklch(72.7% 0.126 103.4);
Tailwind
colors: {
  custom: {
    50: '#cec37a',
    500: '#b5aa40',
    950: '#000000',
  },
}
SCSS
$custom: #b5aa40;
$custom-light: #cec37a;
$custom-dark: #000000;
JSON
{
  "hex": "#b5aa40",
  "rgb": {
    "r": 181,
    "g": 170,
    "b": 64
  },
  "hsl": {
    "h": 54.359,
    "s": 47.755,
    "l": 48.039
  },
  "oklch": {
    "l": 0.72719,
    "c": 0.12626,
    "h": 103.4
  },
  "luminance": 0.38943
}

Semantic roles & 50–950 ramp

primary
#B5AA40
secondary
#8B91C5
accent
#5DD750
background
#FDFBF7
surface
#FAF7EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B5AA40

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

Preview Lab → · Contrast checker → · Palette generator →

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