#B5A331#B5A331

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

Color values

HEX#B5A331
RGBrgb(181, 163, 49)
HSLhsl(52, 57%, 45%)
HSVhsv(52, 73%, 71%)
CMYKcmyk(0%, 9.9%, 72.9%, 29%)
CIE-LABlab(66.70, -6.10, 58.21)
CIE-LCHlch(66.70, 58.53, 95.98°)
OKLaboklab(71.09% -0.0228 0.1288)
OKLCHoklch(71.09% 0.131 100)
XYZxyz(32.7092, 36.2414, 8.1775)
Luminance0.3624 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5A331 #3143B5
analogous
#B56131 #B5A331 #85B531
triadic
#B5A331 #31B5A3 #A331B5
tetradic
#B5A331 #31B561 #3143B5 #B53185
square
#B5A331 #31B561 #3143B5 #B53185
split-complementary
#B5A331 #3185B5 #6131B5
monochromatic
#554C17 #857824 #B5A331 #D0BF53 #DDD183

Accessibility & contrast

On white

2.55
#B5A331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5A331#FFFFFF#000000##000000
##B5A3311.002.558.258.25
#FFFFFF2.551.0021.0021.00
#0000008.2521.001.001.00
##0000008.2521.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5a331;
/* rgb */ color: rgb(181, 163, 49);
/* oklch */ color: oklch(71.1% 0.131 100.0);
Tailwind
colors: {
  custom: {
    50: '#cfbd71',
    500: '#b5a331',
    950: '#000000',
  },
}
SCSS
$custom: #b5a331;
$custom-light: #cfbd71;
$custom-dark: #000000;
JSON
{
  "hex": "#b5a331",
  "rgb": {
    "r": 181,
    "g": 163,
    "b": 49
  },
  "hsl": {
    "h": 51.818,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.7109,
    "c": 0.13078,
    "h": 100
  },
  "luminance": 0.3624
}

Semantic roles & 50–950 ramp

primary
#B5A331
secondary
#7B85C7
accent
#5CE147
background
#FDFBF7
surface
#FAF6ED
border
#D3D0C8
text
#141208
muted
#83817B

Preview Lab

Preview with #B5A331

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

Preview Lab → · Contrast checker → · Palette generator →

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