#B5B931#B5B931

#B5B931 is a light, vivid yellow. Relative luminance 0.447; OKLCH L 75.9% C 0.151 H 111.2°. Best body text is #000000 at 9.95:1 contrast (WCAG AA passes).

Color values

HEX#B5B931
RGBrgb(181, 185, 49)
HSLhsl(62, 58%, 46%)
HSVhsv(62, 74%, 73%)
CMYKcmyk(2.2%, 0%, 73.5%, 27.5%)
CIE-LABlab(72.72, -17.48, 63.97)
CIE-LCHlch(72.72, 66.32, 105.28°)
OKLaboklab(75.89% -0.0547 0.141)
OKLCHoklch(75.89% 0.151 111.2)
XYZxyz(36.9606, 44.7444, 9.5947)
Luminance0.4474 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B931 #3531B9
analogous
#B97931 #B5B931 #71B931
triadic
#B5B931 #31B5B9 #B931B5
tetradic
#B5B931 #31B979 #3531B9 #B93171
square
#B5B931 #31B979 #3531B9 #B93171
split-complementary
#B5B931 #3171B9 #7931B9
monochromatic
#565817 #868924 #B5B931 #CED255 #DCDF86

Accessibility & contrast

On white

2.11
#B5B931 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

9.95
#B5B931 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B931
9.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B931#FFFFFF#000000##000000
##B5B9311.002.119.959.95
#FFFFFF2.111.0021.0021.00
#0000009.9521.001.001.00
##0000009.9521.001.001.00

Color blindness preview

Protanopia (red-blind)
#C8B114
Deuteranopia (green-blind)
#C8B43C
Tritanopia (blue-blind)
#C2AD9F
Achromatopsia (no color)
#B2B2B2

Design tokens & code

CSS
--color: #b5b931;
/* rgb */ color: rgb(181, 185, 49);
/* oklch */ color: oklch(75.9% 0.151 111.2);
Tailwind
colors: {
  custom: {
    50: '#cfcd73',
    500: '#b5b931',
    950: '#000000',
  },
}
SCSS
$custom: #b5b931;
$custom-light: #cfcd73;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b931",
  "rgb": {
    "r": 181,
    "g": 185,
    "b": 49
  },
  "hsl": {
    "h": 61.765,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.75886,
    "c": 0.15122,
    "h": 111.2
  },
  "luminance": 0.44743
}

Semantic roles & 50–950 ramp

primary
#B5B931
secondary
#807DC8
accent
#46E14B
background
#FDFCF7
surface
#FAF9ED
border
#D3D2C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B931

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

Preview Lab → · Contrast checker → · Palette generator →

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