#B5339D#B5339D

#B5339D is a mid, highly saturated pink. Relative luminance 0.146; OKLCH L 55.3% C 0.200 H 336.4°. Best body text is #FFFFFF at 5.35:1 contrast (WCAG AA passes).

Color values

HEX#B5339D
RGBrgb(181, 51, 157)
HSLhsl(311, 56%, 45%)
HSVhsv(311, 72%, 71%)
CMYKcmyk(0%, 71.8%, 13.3%, 29%)
CIE-LABlab(45.12, 62.48, -29.41)
CIE-LCHlch(45.12, 69.05, 334.79°)
OKLaboklab(55.33% 0.1834 -0.0801)
OKLCHoklch(55.33% 0.2 336.4)
XYZxyz(26.3261, 14.6281, 33.3288)
Luminance0.1463 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5339D #33B54B
analogous
#8C33B5 #B5339D #B5335C
triadic
#B5339D #9DB533 #339DB5
tetradic
#B5339D #B58C33 #33B54B #335CB5
square
#B5339D #B58C33 #33B54B #335CB5
split-complementary
#B5339D #5CB533 #33B58C
monochromatic
#56184A #852674 #B5339D #CF56B9 #DD86CD

Accessibility & contrast

On white

5.35
#B5339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5339D
5.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5339D#FFFFFF#000000##FFFFFF
##B5339D1.005.353.935.35
#FFFFFF5.351.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#355EA0
Deuteranopia (green-blind)
#62729A
Tritanopia (blue-blind)
#BE3B64
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b5339d;
/* rgb */ color: rgb(181, 51, 157);
/* oklch */ color: oklch(55.3% 0.200 336.4);
Tailwind
colors: {
  custom: {
    50: '#cf77ba',
    500: '#b5339d',
    950: '#000000',
  },
}
SCSS
$custom: #b5339d;
$custom-light: #cf77ba;
$custom-dark: #000000;
JSON
{
  "hex": "#b5339d",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 311.077,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55333,
    "c": 0.20012,
    "h": 336.4
  },
  "luminance": 0.14626
}

Semantic roles & 50–950 ramp

primary
#B5339D
secondary
#7DC68B
accent
#DF6448
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B5339D

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

Preview Lab → · Contrast checker → · Palette generator →

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