#B5A834#B5A834

#B5A834 is a light, vivid yellow. Relative luminance 0.381; OKLCH L 72.2% C 0.133 H 102.8°. Best body text is #000000 at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#B5A834
RGBrgb(181, 168, 52)
HSLhsl(54, 55%, 46%)
HSVhsv(54, 71%, 71%)
CMYKcmyk(0%, 7.2%, 71.3%, 29%)
CIE-LABlab(68.08, -8.59, 58.41)
CIE-LCHlch(68.08, 59.04, 98.36°)
OKLaboklab(72.19% -0.0295 0.1298)
OKLCHoklch(72.19% 0.133 102.8)
XYZxyz(33.6800, 38.0784, 8.8239)
Luminance0.3808 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A834 #3441B5
analogous
#B56734 #B5A834 #82B534
triadic
#B5A834 #34B5A8 #A834B5
tetradic
#B5A834 #34B567 #3441B5 #B53482
square
#B5A834 #34B567 #3441B5 #B53482
split-complementary
#B5A834 #3482B5 #6734B5
monochromatic
#565019 #857C26 #B5A834 #CFC357 #DCD487

Accessibility & contrast

On white

2.44
#B5A834 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

8.62
#B5A834 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A834
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A834#FFFFFF#000000##000000
##B5A8341.002.448.628.62
#FFFFFF2.441.0021.0021.00
#0000008.6221.001.001.00
##0000008.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#B7A321
Deuteranopia (green-blind)
#BBA93C
Tritanopia (blue-blind)
#C39C91
Achromatopsia (no color)
#A6A6A6

Design tokens & code

CSS
--color: #b5a834;
/* rgb */ color: rgb(181, 168, 52);
/* oklch */ color: oklch(72.2% 0.133 102.8);
Tailwind
colors: {
  custom: {
    50: '#cfc173',
    500: '#b5a834',
    950: '#000000',
  },
}
SCSS
$custom: #b5a834;
$custom-light: #cfc173;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a834",
  "rgb": {
    "r": 181,
    "g": 168,
    "b": 52
  },
  "hsl": {
    "h": 53.953,
    "s": 55.365,
    "l": 45.686
  },
  "oklch": {
    "l": 0.72188,
    "c": 0.13307,
    "h": 102.8
  },
  "luminance": 0.38077
}

Semantic roles & 50–950 ramp

primary
#B5A834
secondary
#7F86C6
accent
#58DF49
background
#FDFBF7
surface
#FAF7ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A834

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

Preview Lab → · Contrast checker → · Palette generator →

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