#B5339E#B5339E

#B5339E is a mid, highly saturated pink. Relative luminance 0.147; OKLCH L 55.4% C 0.201 H 336.0°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#B5339E
RGBrgb(181, 51, 158)
HSLhsl(311, 56%, 45%)
HSVhsv(311, 72%, 71%)
CMYKcmyk(0%, 71.8%, 12.7%, 29%)
CIE-LABlab(45.17, 62.62, -29.93)
CIE-LCHlch(45.17, 69.41, 334.45°)
OKLaboklab(55.38% 0.1835 -0.0816)
OKLCHoklch(55.38% 0.201 336)
XYZxyz(26.4118, 14.6624, 33.7802)
Luminance0.1466 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5339E #33B54A
analogous
#8B33B5 #B5339E #B5335D
triadic
#B5339E #9EB533 #339EB5
tetradic
#B5339E #B58B33 #33B54A #335DB5
square
#B5339E #B58B33 #33B54A #335DB5
split-complementary
#B5339E #5DB533 #33B58B
monochromatic
#56184B #852674 #B5339E #CF56BA #DD86CD

Accessibility & contrast

On white

5.34
#B5339E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#B5339E on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5339E
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5339E#FFFFFF#000000##FFFFFF
##B5339E1.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA1
Deuteranopia (green-blind)
#61729B
Tritanopia (blue-blind)
#BE3C65
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b5339e;
/* rgb */ color: rgb(181, 51, 158);
/* oklch */ color: oklch(55.4% 0.201 336.0);
Tailwind
colors: {
  custom: {
    50: '#cf77bb',
    500: '#b5339e',
    950: '#000000',
  },
}
SCSS
$custom: #b5339e;
$custom-light: #cf77bb;
$custom-dark: #000000;
JSON
{
  "hex": "#b5339e",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 310.615,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55383,
    "c": 0.20082,
    "h": 336
  },
  "luminance": 0.1466
}

Semantic roles & 50–950 ramp

primary
#B5339E
secondary
#7DC68A
accent
#DF6348
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140A12
muted
#837C81

Preview Lab

Preview with #B5339E

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

Preview Lab → · Contrast checker → · Palette generator →

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