#B5B131#B5B131

#B5B131 is a light, vivid yellow. Relative luminance 0.415; OKLCH L 74.1% C 0.143 H 107.6°. Best body text is #000000 at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#B5B131
RGBrgb(181, 177, 49)
HSLhsl(58, 57%, 45%)
HSVhsv(58, 73%, 71%)
CMYKcmyk(0%, 2.2%, 72.9%, 29%)
CIE-LABlab(70.52, -13.41, 61.88)
CIE-LCHlch(70.52, 63.32, 102.22°)
OKLaboklab(74.13% -0.0434 0.1365)
OKLCHoklch(74.13% 0.143 107.6)
XYZxyz(35.3339, 41.4910, 9.0524)
Luminance0.4149 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B131 #3135B5
analogous
#B56F31 #B5B131 #77B531
triadic
#B5B131 #31B5B1 #B131B5
tetradic
#B5B131 #31B56F #3135B5 #B53177
square
#B5B131 #31B56F #3135B5 #B53177
split-complementary
#B5B131 #3177B5 #6F31B5
monochromatic
#555317 #858224 #B5B131 #D0CD53 #DDDB83

Accessibility & contrast

On white

2.26
#B5B131 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.30
#B5B131 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B131
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B131#FFFFFF#000000##000000
##B5B1311.002.269.309.30
#FFFFFF2.261.0021.0021.00
#0000009.3021.001.001.00
##0000009.3021.001.001.00

Color blindness preview

Protanopia (red-blind)
#C0AA18
Deuteranopia (green-blind)
#C2AF3B
Tritanopia (blue-blind)
#C2A598
Achromatopsia (no color)
#ACACAC

Design tokens & code

CSS
--color: #b5b131;
/* rgb */ color: rgb(181, 177, 49);
/* oklch */ color: oklch(74.1% 0.143 107.6);
Tailwind
colors: {
  custom: {
    50: '#cfc872',
    500: '#b5b131',
    950: '#000000',
  },
}
SCSS
$custom: #b5b131;
$custom-light: #cfc872;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b131",
  "rgb": {
    "r": 181,
    "g": 177,
    "b": 49
  },
  "hsl": {
    "h": 58.182,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.74125,
    "c": 0.14326,
    "h": 107.6
  },
  "luminance": 0.4149
}

Semantic roles & 50–950 ramp

primary
#B5B131
secondary
#7B7DC7
accent
#4CE147
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141308
muted
#83827B

Preview Lab

Preview with #B5B131

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

Preview Lab → · Contrast checker → · Palette generator →

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