#B5339A#B5339A

#B5339A is a mid, vivid pink. Relative luminance 0.145; OKLCH L 55.2% C 0.198 H 337.6°. Best body text is #FFFFFF at 5.38:1 contrast (WCAG AA passes).

Color values

HEX#B5339A
RGBrgb(181, 51, 154)
HSLhsl(312, 56%, 45%)
HSVhsv(312, 72%, 71%)
CMYKcmyk(0%, 71.8%, 14.9%, 29%)
CIE-LABlab(44.98, 62.04, -27.83)
CIE-LCHlch(44.98, 67.99, 335.84°)
OKLaboklab(55.18% 0.1831 -0.0756)
OKLCHoklch(55.18% 0.198 337.6)
XYZxyz(26.0731, 14.5269, 31.9964)
Luminance0.1452 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5339A #33B54E
analogous
#8F33B5 #B5339A #B53359
triadic
#B5339A #9AB533 #339AB5
tetradic
#B5339A #B58F33 #33B54E #3359B5
square
#B5339A #B58F33 #33B54E #3359B5
split-complementary
#B5339A #59B533 #33B58F
monochromatic
#561849 #852671 #B5339A #CF56B6 #DD86CB

Accessibility & contrast

On white

5.38
#B5339A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#B5339A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5339A
5.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5339A#FFFFFF#000000##FFFFFF
##B5339A1.005.383.905.38
#FFFFFF5.381.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#385E9D
Deuteranopia (green-blind)
#637297
Tritanopia (blue-blind)
#BF3A62
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b5339a;
/* rgb */ color: rgb(181, 51, 154);
/* oklch */ color: oklch(55.2% 0.198 337.6);
Tailwind
colors: {
  custom: {
    50: '#cf77b8',
    500: '#b5339a',
    950: '#000000',
  },
}
SCSS
$custom: #b5339a;
$custom-light: #cf77b8;
$custom-dark: #000000;
JSON
{
  "hex": "#b5339a",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 154
  },
  "hsl": {
    "h": 312.462,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.55185,
    "c": 0.19804,
    "h": 337.6
  },
  "luminance": 0.14525
}

Semantic roles & 50–950 ramp

primary
#B5339A
secondary
#7DC68D
accent
#DF6848
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140911
muted
#837B80

Preview Lab

Preview with #B5339A

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

Preview Lab → · Contrast checker → · Palette generator →

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