#B5A134#B5A134

#B5A134 is a light, vivid yellow. Relative luminance 0.356; OKLCH L 70.7% C 0.127 H 98.6°. Best body text is #000000 at 8.11:1 contrast (WCAG AA passes).

Color values

HEX#B5A134
RGBrgb(181, 161, 52)
HSLhsl(51, 55%, 46%)
HSVhsv(51, 71%, 71%)
CMYKcmyk(0%, 11%, 71.3%, 29%)
CIE-LABlab(66.18, -4.89, 56.54)
CIE-LCHlch(66.18, 56.75, 94.94°)
OKLaboklab(70.69% -0.019 0.1258)
OKLCHoklch(70.69% 0.127 98.6)
XYZxyz(32.4223, 35.5630, 8.4047)
Luminance0.3556 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A134 #3448B5
analogous
#B56134 #B5A134 #88B534
triadic
#B5A134 #34B5A1 #A134B5
tetradic
#B5A134 #34B561 #3448B5 #B53488
square
#B5A134 #34B561 #3448B5 #B53488
split-complementary
#B5A134 #3488B5 #6134B5
monochromatic
#564C19 #857726 #B5A134 #CFBC57 #DCCF87

Accessibility & contrast

On white

2.59
#B5A134 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.11
#B5A134 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A134
8.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A134#FFFFFF#000000##000000
##B5A1341.002.598.118.11
#FFFFFF2.591.0021.0021.00
#0000008.1121.001.001.00
##0000008.1121.001.001.00

Color blindness preview

Protanopia (red-blind)
#B19D23
Deuteranopia (green-blind)
#B6A43B
Tritanopia (blue-blind)
#C3958B
Achromatopsia (no color)
#A1A1A1

Design tokens & code

CSS
--color: #b5a134;
/* rgb */ color: rgb(181, 161, 52);
/* oklch */ color: oklch(70.7% 0.127 98.6);
Tailwind
colors: {
  custom: {
    50: '#cfbc72',
    500: '#b5a134',
    950: '#000000',
  },
}
SCSS
$custom: #b5a134;
$custom-light: #cfbc72;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a134",
  "rgb": {
    "r": 181,
    "g": 161,
    "b": 52
  },
  "hsl": {
    "h": 50.698,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.70685,
    "c": 0.12723,
    "h": 98.6
  },
  "luminance": 0.35561
}

Semantic roles & 50–950 ramp

primary
#B5A134
secondary
#7F8AC6
accent
#60DF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141108
muted
#83807B

Preview Lab

Preview with #B5A134

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

Preview Lab → · Contrast checker → · Palette generator →

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