#B5339B#B5339B

#B5339B is a mid, vivid pink. Relative luminance 0.146; OKLCH L 55.2% C 0.199 H 337.2°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B5339B
RGBrgb(181, 51, 155)
HSLhsl(312, 56%, 45%)
HSVhsv(312, 72%, 71%)
CMYKcmyk(0%, 71.8%, 14.4%, 29%)
CIE-LABlab(45.03, 62.18, -28.36)
CIE-LCHlch(45.03, 68.34, 335.49°)
OKLaboklab(55.23% 0.1832 -0.0771)
OKLCHoklch(55.23% 0.199 337.2)
XYZxyz(26.1568, 14.5604, 32.4368)
Luminance0.1456 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5339B #33B54D
analogous
#8E33B5 #B5339B #B5335A
triadic
#B5339B #9BB533 #339BB5
tetradic
#B5339B #B58E33 #33B54D #335AB5
square
#B5339B #B58E33 #33B54D #335AB5
split-complementary
#B5339B #5AB533 #33B58E
monochromatic
#561849 #852672 #B5339B #CF56B7 #DD86CB

Accessibility & contrast

On white

5.37
#B5339B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B5339B on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5339B
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5339B#FFFFFF#000000##FFFFFF
##B5339B1.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#375E9E
Deuteranopia (green-blind)
#637298
Tritanopia (blue-blind)
#BF3A63
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b5339b;
/* rgb */ color: rgb(181, 51, 155);
/* oklch */ color: oklch(55.2% 0.199 337.2);
Tailwind
colors: {
  custom: {
    50: '#cf77b9',
    500: '#b5339b',
    950: '#000000',
  },
}
SCSS
$custom: #b5339b;
$custom-light: #cf77b9;
$custom-dark: #000000;
JSON
{
  "hex": "#b5339b",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 155
  },
  "hsl": {
    "h": 312,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55234,
    "c": 0.19873,
    "h": 337.2
  },
  "luminance": 0.14558
}

Semantic roles & 50–950 ramp

primary
#B5339B
secondary
#7DC68C
accent
#DF6748
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B5339B

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

Preview Lab → · Contrast checker → · Palette generator →

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