#B5A339#B5A339

#B5A339 is a light, vivid yellow. Relative luminance 0.363; OKLCH L 71.2% C 0.125 H 99.5°. Best body text is #000000 at 8.26:1 contrast (WCAG AA passes).

Color values

HEX#B5A339
RGBrgb(181, 163, 57)
HSLhsl(51, 52%, 47%)
HSVhsv(51, 69%, 71%)
CMYKcmyk(0%, 9.9%, 68.5%, 29%)
CIE-LABlab(66.76, -5.68, 55.10)
CIE-LCHlch(66.76, 55.39, 95.89°)
OKLaboklab(71.15% -0.0207 0.1236)
OKLCHoklch(71.15% 0.125 99.5)
XYZxyz(32.8932, 36.3151, 9.1470)
Luminance0.3631 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A339 #394BB5
analogous
#B56539 #B5A339 #89B539
triadic
#B5A339 #39B5A3 #A339B5
tetradic
#B5A339 #39B565 #394BB5 #B53989
square
#B5A339 #39B565 #394BB5 #B53989
split-complementary
#B5A339 #3989B5 #6539B5
monochromatic
#584F1C #86792A #B5A339 #CDBD5F #DBD08D

Accessibility & contrast

On white

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

On black

8.26
#B5A339 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5A339
8.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5A339#FFFFFF#000000##000000
##B5A3391.002.548.268.26
#FFFFFF2.541.0021.0021.00
#0000008.2621.001.001.00
##0000008.2621.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a339;
/* rgb */ color: rgb(181, 163, 57);
/* oklch */ color: oklch(71.2% 0.125 99.5);
Tailwind
colors: {
  custom: {
    50: '#cebd75',
    500: '#b5a339',
    950: '#000000',
  },
}
SCSS
$custom: #b5a339;
$custom-light: #cebd75;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a339",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 57
  },
  "hsl": {
    "h": 51.29,
    "s": 52.101,
    "l": 46.667
  },
  "oklch": {
    "l": 0.71152,
    "c": 0.12535,
    "h": 99.5
  },
  "luminance": 0.36314
}

Semantic roles & 50–950 ramp

primary
#B5A339
secondary
#848EC6
accent
#61DC4C
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141209
muted
#83817B

Preview Lab

Preview with #B5A339

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

Preview Lab → · Contrast checker → · Palette generator →

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