#B5B837#B5B837

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

Color values

HEX#B5B837
RGBrgb(181, 184, 55)
HSLhsl(61, 54%, 47%)
HSVhsv(61, 70%, 72%)
CMYKcmyk(1.6%, 0%, 70.1%, 27.8%)
CIE-LABlab(72.48, -16.68, 61.61)
CIE-LCHlch(72.48, 63.83, 105.15°)
OKLaboklab(75.71% -0.0519 0.137)
OKLCHoklch(75.71% 0.147 110.8)
XYZxyz(36.8874, 44.3816, 10.2371)
Luminance0.4438 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5B837 #3A37B8
analogous
#B87A37 #B5B837 #75B837
triadic
#B5B837 #37B5B8 #B837B5
tetradic
#B5B837 #37B87A #3A37B8 #B83775
square
#B5B837 #37B87A #3A37B8 #B83775
split-complementary
#B5B837 #3775B8 #7A37B8
monochromatic
#585A1B #878929 #B5B837 #CCCF5D #DBDD8D

Accessibility & contrast

On white

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

On black

9.88
#B5B837 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5B837
9.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5B837#FFFFFF#000000##000000
##B5B8371.002.139.889.88
#FFFFFF2.131.0021.0021.00
#0000009.8821.001.001.00
##0000009.8821.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b5b837;
/* rgb */ color: rgb(181, 184, 55);
/* oklch */ color: oklch(75.7% 0.147 110.8);
Tailwind
colors: {
  custom: {
    50: '#cfcd76',
    500: '#b5b837',
    950: '#000000',
  },
}
SCSS
$custom: #b5b837;
$custom-light: #cfcd76;
$custom-dark: #000000;
JSON
{
  "hex": "#b5b837",
  "rgb": {
    "r": 181,
    "g": 184,
    "b": 55
  },
  "hsl": {
    "h": 61.395,
    "s": 53.975,
    "l": 46.863
  },
  "oklch": {
    "l": 0.75705,
    "c": 0.14656,
    "h": 110.8
  },
  "luminance": 0.44381
}

Semantic roles & 50–950 ramp

primary
#B5B837
secondary
#8584C7
accent
#4ADD4E
background
#FDFCF7
surface
#FAF8ED
border
#D3D1C8
text
#141309
muted
#83827B

Preview Lab

Preview with #B5B837

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

Preview Lab → · Contrast checker → · Palette generator →

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