#B5C731#B5C731

#B5C731 is a light, vivid yellow. Relative luminance 0.509; OKLCH L 79.0% C 0.166 H 116.4°. Best body text is #000000 at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#B5C731
RGBrgb(181, 199, 49)
HSLhsl(67, 60%, 49%)
HSVhsv(67, 75%, 78%)
CMYKcmyk(9%, 0%, 75.4%, 22%)
CIE-LABlab(76.61, -24.40, 67.62)
CIE-LCHlch(76.61, 71.88, 109.84°)
OKLaboklab(79.01% -0.0739 0.1487)
OKLCHoklch(79.01% 0.166 116.4)
XYZxyz(40.0349, 50.8929, 10.6194)
Luminance0.5089 (WCAG relative)
Temperaturewarm
Familyyellow

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5C731 #4331C7
analogous
#C78E31 #B5C731 #6AC731
triadic
#B5C731 #31B5C7 #C731B5
tetradic
#B5C731 #31C78E #4331C7 #C7316A
square
#B5C731 #31C78E #4331C7 #C7316A
split-complementary
#B5C731 #316AC7 #8E31C7
monochromatic
#5C6519 #889625 #B5C731 #C9D75E #D9E38F

Accessibility & contrast

On white

1.88
#B5C731 on #FFFFFF
AA ✗AA large ✗AAA ✗

On black

11.18
#B5C731 on #000000
AA ✓AA large ✓AAA ✓

Best text color

#000000 on #B5C731
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5C731#FFFFFF#000000##000000
##B5C7311.001.8811.1811.18
#FFFFFF1.881.0021.0021.00
#00000011.1821.001.001.00
##00000011.1821.001.001.00

Color blindness preview

Protanopia (red-blind)
#D5BC0A
Deuteranopia (green-blind)
#D3BE3E
Tritanopia (blue-blind)
#C1BCAB
Achromatopsia (no color)
#BDBDBD

Design tokens & code

CSS
--color: #b5c731;
/* rgb */ color: rgb(181, 199, 49);
/* oklch */ color: oklch(79.0% 0.166 116.4);
Tailwind
colors: {
  custom: {
    50: '#cfd775',
    500: '#b5c731',
    950: '#000000',
  },
}
SCSS
$custom: #b5c731;
$custom-light: #cfd775;
$custom-dark: #000000;
JSON
{
  "hex": "#b5c731",
  "rgb": {
    "r": 181,
    "g": 199,
    "b": 49
  },
  "hsl": {
    "h": 67.2,
    "s": 60.484,
    "l": 48.627
  },
  "oklch": {
    "l": 0.79005,
    "c": 0.16606,
    "h": 116.4
  },
  "luminance": 0.50892
}

Semantic roles & 50–950 ramp

primary
#B5C731
secondary
#352D6F
accent
#44E457
background
#FEFEFB
surface
#FBFBF1
border
#D4D4CB
text
#141409
muted
#83837D

Preview Lab

Preview with #B5C731

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

Preview Lab → · Contrast checker → · Palette generator →

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