#B5B331#B5B331

#B5B331 is a light, vivid yellow. Relative luminance 0.423; OKLCH L 74.6% C 0.145 H 108.6°. Best body text is #000000 at 9.46:1 contrast (WCAG AA passes).

Color values

HEX#B5B331
RGBrgb(181, 179, 49)
HSLhsl(59, 57%, 45%)
HSVhsv(59, 73%, 71%)
CMYKcmyk(0%, 1.1%, 72.9%, 29%)
CIE-LABlab(71.07, -14.43, 62.40)
CIE-LCHlch(71.07, 64.05, 103.02°)
OKLaboklab(74.56% -0.0462 0.1377)
OKLCHoklch(74.56% 0.145 108.6)
XYZxyz(35.7319, 42.2868, 9.1851)
Luminance0.4229 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B331 #3133B5
analogous
#B57131 #B5B331 #75B531
triadic
#B5B331 #31B5B3 #B331B5
tetradic
#B5B331 #31B571 #3133B5 #B53175
square
#B5B331 #31B571 #3133B5 #B53175
split-complementary
#B5B331 #3175B5 #7131B5
monochromatic
#555417 #858324 #B5B331 #D0CE53 #DDDC83

Accessibility & contrast

On white

2.22
#B5B331 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.46
#B5B331 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B331
9.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B331#FFFFFF#000000##000000
##B5B3311.002.229.469.46
#FFFFFF2.221.0021.0021.00
#0000009.4621.001.001.00
##0000009.4621.001.001.00

Color blindness preview

Protanopia (red-blind)
#C2AC17
Deuteranopia (green-blind)
#C4B03B
Tritanopia (blue-blind)
#C2A79A
Achromatopsia (no color)
#AEAEAE

Design tokens & code

CSS
--color: #b5b331;
/* rgb */ color: rgb(181, 179, 49);
/* oklch */ color: oklch(74.6% 0.145 108.6);
Tailwind
colors: {
  custom: {
    50: '#cfc973',
    500: '#b5b331',
    950: '#000000',
  },
}
SCSS
$custom: #b5b331;
$custom-light: #cfc973;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b331",
  "rgb": {
    "r": 181,
    "g": 179,
    "b": 49
  },
  "hsl": {
    "h": 59.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74563,
    "c": 0.14521,
    "h": 108.6
  },
  "luminance": 0.42286
}

Semantic roles & 50–950 ramp

primary
#B5B331
secondary
#7B7CC7
accent
#49E147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B331

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

Preview Lab → · Contrast checker → · Palette generator →

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