#B5B831#B5B831

#B5B831 is a light, vivid yellow. Relative luminance 0.443; OKLCH L 75.7% C 0.150 H 110.8°. Best body text is #000000 at 9.87:1 contrast (WCAG AA passes).

Color values

HEX#B5B831
RGBrgb(181, 184, 49)
HSLhsl(61, 58%, 46%)
HSVhsv(61, 73%, 72%)
CMYKcmyk(1.6%, 0%, 73.4%, 27.8%)
CIE-LABlab(72.45, -16.97, 63.71)
CIE-LCHlch(72.45, 65.93, 104.92°)
OKLaboklab(75.67% -0.0533 0.1404)
OKLCHoklch(75.67% 0.15 110.8)
XYZxyz(36.7522, 44.3275, 9.5252)
Luminance0.4433 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B831 #3431B8
analogous
#B87731 #B5B831 #72B831
triadic
#B5B831 #31B5B8 #B831B5
tetradic
#B5B831 #31B877 #3431B8 #B83172
square
#B5B831 #31B877 #3431B8 #B83172
split-complementary
#B5B831 #3172B8 #7731B8
monochromatic
#565717 #858824 #B5B831 #CFD255 #DCDE85

Accessibility & contrast

On white

2.13
#B5B831 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.87
#B5B831 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B831
9.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B831#FFFFFF#000000##000000
##B5B8311.002.139.879.87
#FFFFFF2.131.0021.0021.00
#0000009.8721.001.001.00
##0000009.8721.001.001.00

Color blindness preview

Protanopia (red-blind)
#C7B015
Deuteranopia (green-blind)
#C8B33C
Tritanopia (blue-blind)
#C2AC9E
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b5b831;
/* rgb */ color: rgb(181, 184, 49);
/* oklch */ color: oklch(75.7% 0.150 110.8);
Tailwind
colors: {
  custom: {
    50: '#cfcd73',
    500: '#b5b831',
    950: '#000000',
  },
}
SCSS
$custom: #b5b831;
$custom-light: #cfcd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b831",
  "rgb": {
    "r": 181,
    "g": 184,
    "b": 49
  },
  "hsl": {
    "h": 61.333,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.75665,
    "c": 0.1502,
    "h": 110.8
  },
  "luminance": 0.44326
}

Semantic roles & 50–950 ramp

primary
#B5B831
secondary
#7F7DC8
accent
#47E14A
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B831

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

Preview Lab → · Contrast checker → · Palette generator →

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