#B5B731#B5B731

#B5B731 is a light, vivid yellow. Relative luminance 0.439; OKLCH L 75.4% C 0.149 H 110.4°. Best body text is #000000 at 9.78:1 contrast (WCAG AA passes).

Color values

HEX#B5B731
RGBrgb(181, 183, 49)
HSLhsl(61, 58%, 45%)
HSVhsv(61, 73%, 72%)
CMYKcmyk(1.1%, 0%, 73.2%, 28.2%)
CIE-LABlab(72.17, -16.47, 63.45)
CIE-LCHlch(72.17, 65.55, 104.55°)
OKLaboklab(75.44% -0.0519 0.1399)
OKLCHoklch(75.44% 0.149 110.4)
XYZxyz(36.5452, 43.9135, 9.4562)
Luminance0.4391 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B731 #3331B7
analogous
#B77631 #B5B731 #72B731
triadic
#B5B731 #31B5B7 #B731B5
tetradic
#B5B731 #31B776 #3331B7 #B73172
square
#B5B731 #31B776 #3331B7 #B73172
split-complementary
#B5B731 #3172B7 #7631B7
monochromatic
#565617 #858724 #B5B731 #CFD154 #DDDE84

Accessibility & contrast

On white

2.15
#B5B731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.78
#B5B731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B731
9.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B731#FFFFFF#000000##000000
##B5B7311.002.159.789.78
#FFFFFF2.151.0021.0021.00
#0000009.7821.001.001.00
##0000009.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#C6AF15
Deuteranopia (green-blind)
#C7B33C
Tritanopia (blue-blind)
#C2AB9D
Achromatopsia (no color)
#B1B1B1

Design tokens & code

CSS
--color: #b5b731;
/* rgb */ color: rgb(181, 183, 49);
/* oklch */ color: oklch(75.4% 0.149 110.4);
Tailwind
colors: {
  custom: {
    50: '#cfcc73',
    500: '#b5b731',
    950: '#000000',
  },
}
SCSS
$custom: #b5b731;
$custom-light: #cfcc73;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b731",
  "rgb": {
    "r": 181,
    "g": 183,
    "b": 49
  },
  "hsl": {
    "h": 60.896,
    "s": 57.759,
    "l": 45.49
  },
  "oklch": {
    "l": 0.75444,
    "c": 0.14919,
    "h": 110.4
  },
  "luminance": 0.43912
}

Semantic roles & 50–950 ramp

primary
#B5B731
secondary
#7D7CC8
accent
#47E149
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B731

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

Preview Lab → · Contrast checker → · Palette generator →

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