#B5A334#B5A334

#B5A334 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.1% C 0.129 H 99.8°. Best body text is #000000 at 8.25:1 contrast (WCAG AA passes).

Color values

HEX#B5A334
RGBrgb(181, 163, 52)
HSLhsl(52, 55%, 46%)
HSVhsv(52, 71%, 71%)
CMYKcmyk(0%, 9.9%, 71.3%, 29%)
CIE-LABlab(66.72, -5.95, 57.08)
CIE-LCHlch(66.72, 57.39, 95.95°)
OKLaboklab(71.11% -0.022 0.1269)
OKLCHoklch(71.11% 0.129 99.8)
XYZxyz(32.7746, 36.2676, 8.5221)
Luminance0.3627 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A334 #3446B5
analogous
#B56234 #B5A334 #86B534
triadic
#B5A334 #34B5A3 #A334B5
tetradic
#B5A334 #34B562 #3446B5 #B53486
square
#B5A334 #34B562 #3446B5 #B53486
split-complementary
#B5A334 #3486B5 #6234B5
monochromatic
#564D19 #857826 #B5A334 #CFBE57 #DCD187

Accessibility & contrast

On white

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

On black

8.25
#B5A334 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A334
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A334#FFFFFF#000000##000000
##B5A3341.002.548.258.25
#FFFFFF2.541.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

Protanopia (red-blind)
#B39E23
Deuteranopia (green-blind)
#B8A53B
Tritanopia (blue-blind)
#C3978D
Achromatopsia (no color)
#A2A2A2

Design tokens & code

CSS
--color: #b5a334;
/* rgb */ color: rgb(181, 163, 52);
/* oklch */ color: oklch(71.1% 0.129 99.8);
Tailwind
colors: {
  custom: {
    50: '#cfbd73',
    500: '#b5a334',
    950: '#000000',
  },
}
SCSS
$custom: #b5a334;
$custom-light: #cfbd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a334",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 52
  },
  "hsl": {
    "h": 51.628,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71112,
    "c": 0.12883,
    "h": 99.8
  },
  "luminance": 0.36266
}

Semantic roles & 50–950 ramp

primary
#B5A334
secondary
#7F89C6
accent
#5EDF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A334

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

Preview Lab → · Contrast checker → · Palette generator →

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