#B5A534#B5A534

#B5A534 is a light, vivid yellow. Relative luminance 0.370; OKLCH L 71.5% C 0.130 H 101.1°. Best body text is #000000 at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#B5A534
RGBrgb(181, 165, 52)
HSLhsl(53, 55%, 46%)
HSVhsv(53, 71%, 71%)
CMYKcmyk(0%, 8.8%, 71.3%, 29%)
CIE-LABlab(67.26, -7.01, 57.61)
CIE-LCHlch(67.26, 58.04, 96.94°)
OKLaboklab(71.54% -0.025 0.1281)
OKLCHoklch(71.54% 0.13 101.1)
XYZxyz(33.1325, 36.9834, 8.6414)
Luminance0.3698 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A534 #3444B5
analogous
#B56434 #B5A534 #84B534
triadic
#B5A534 #34B5A5 #A534B5
tetradic
#B5A534 #34B564 #3444B5 #B53484
square
#B5A534 #34B564 #3444B5 #B53484
split-complementary
#B5A534 #3484B5 #6434B5
monochromatic
#564E19 #857A26 #B5A534 #CFC057 #DCD287

Accessibility & contrast

On white

2.50
#B5A534 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.40
#B5A534 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A534
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A534#FFFFFF#000000##000000
##B5A5341.002.508.408.40
#FFFFFF2.501.0021.0021.00
#0000008.4021.001.001.00
##0000008.4021.001.001.00

Color blindness preview

Protanopia (red-blind)
#B5A022
Deuteranopia (green-blind)
#B9A73B
Tritanopia (blue-blind)
#C3998F
Achromatopsia (no color)
#A4A4A4

Design tokens & code

CSS
--color: #b5a534;
/* rgb */ color: rgb(181, 165, 52);
/* oklch */ color: oklch(71.5% 0.130 101.1);
Tailwind
colors: {
  custom: {
    50: '#cfbf73',
    500: '#b5a534',
    950: '#000000',
  },
}
SCSS
$custom: #b5a534;
$custom-light: #cfbf73;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a534",
  "rgb": {
    "r": 181,
    "g": 165,
    "b": 52
  },
  "hsl": {
    "h": 52.558,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.71541,
    "c": 0.13048,
    "h": 101.1
  },
  "luminance": 0.36982
}

Semantic roles & 50–950 ramp

primary
#B5A534
secondary
#7F87C6
accent
#5CDF49
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A534

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

Preview Lab → · Contrast checker → · Palette generator →

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