#B5A342#B5A342

#B5A342 is a light, moderate yellow. Relative luminance 0.364; OKLCH L 71.2% C 0.118 H 98.8°. Best body text is #000000 at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#B5A342
RGBrgb(181, 163, 66)
HSLhsl(51, 47%, 48%)
HSVhsv(51, 64%, 71%)
CMYKcmyk(0%, 9.9%, 63.5%, 29%)
CIE-LABlab(66.83, -5.13, 51.29)
CIE-LCHlch(66.83, 51.55, 95.72°)
OKLaboklab(71.24% -0.0181 0.117)
OKLCHoklch(71.24% 0.118 98.8)
XYZxyz(33.1380, 36.4130, 10.4361)
Luminance0.3641 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A342 #4254B5
analogous
#B56942 #B5A342 #8DB542
triadic
#B5A342 #42B5A3 #A342B5
tetradic
#B5A342 #42B569 #4254B5 #B5428D
square
#B5A342 #42B569 #4254B5 #B5428D
split-complementary
#B5A342 #428DB5 #6942B5
monochromatic
#5B5221 #887B32 #B5A342 #C9BA6B #D9CF98

Accessibility & contrast

On white

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

On black

8.28
#B5A342 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A342
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A342#FFFFFF#000000##000000
##B5A3421.002.548.288.28
#FFFFFF2.541.0021.0021.00
#0000008.2821.001.001.00
##0000008.2821.001.001.00

Color blindness preview

Protanopia (red-blind)
#B29F37
Deuteranopia (green-blind)
#B7A547
Tritanopia (blue-blind)
#C2988E
Achromatopsia (no color)
#A3A3A3

Design tokens & code

CSS
--color: #b5a342;
/* rgb */ color: rgb(181, 163, 66);
/* oklch */ color: oklch(71.2% 0.118 98.8);
Tailwind
colors: {
  custom: {
    50: '#cebe7b',
    500: '#b5a342',
    950: '#000000',
  },
}
SCSS
$custom: #b5a342;
$custom-light: #cebe7b;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a342",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 66
  },
  "hsl": {
    "h": 50.609,
    "s": 46.559,
    "l": 48.431
  },
  "oklch": {
    "l": 0.71235,
    "c": 0.11841,
    "h": 98.8
  },
  "luminance": 0.36411
}

Semantic roles & 50–950 ramp

primary
#B5A342
secondary
#8E96C5
accent
#66D652
background
#FDFBF7
surface
#FAF6EE
border
#D3D0C9
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A342

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

Preview Lab → · Contrast checker → · Palette generator →

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