#B5338F#B5338F

#B5338F is a mid, vivid pink. Relative luminance 0.142; OKLCH L 54.7% C 0.191 H 342.0°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B5338F
RGBrgb(181, 51, 143)
HSLhsl(318, 56%, 45%)
HSVhsv(318, 72%, 71%)
CMYKcmyk(0%, 71.8%, 21%, 29%)
CIE-LABlab(44.49, 60.49, -21.97)
CIE-LCHlch(44.49, 64.36, 340.04°)
OKLaboklab(54.67% 0.1814 -0.059)
OKLCHoklch(54.67% 0.191 342)
XYZxyz(25.1986, 14.1771, 27.3907)
Luminance0.1417 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5338F #33B559
analogous
#9A33B5 #B5338F #B5334E
triadic
#B5338F #8FB533 #338FB5
tetradic
#B5338F #B59A33 #33B559 #334EB5
square
#B5338F #B59A33 #33B559 #334EB5
split-complementary
#B5338F #4EB533 #33B59A
monochromatic
#561844 #852669 #B5338F #CF56AC #DD86C3

Accessibility & contrast

On white

5.48
#B5338F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#B5338F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5338F
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5338F#FFFFFF#000000##FFFFFF
##B5338F1.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F5C92
Deuteranopia (green-blind)
#67718C
Tritanopia (blue-blind)
#C0355D
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5338f;
/* rgb */ color: rgb(181, 51, 143);
/* oklch */ color: oklch(54.7% 0.191 342.0);
Tailwind
colors: {
  custom: {
    50: '#cf76b0',
    500: '#b5338f',
    950: '#000000',
  },
}
SCSS
$custom: #b5338f;
$custom-light: #cf76b0;
$custom-dark: #000000;
JSON
{
  "hex": "#b5338f",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 143
  },
  "hsl": {
    "h": 317.538,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54666,
    "c": 0.19076,
    "h": 342
  },
  "luminance": 0.14175
}

Semantic roles & 50–950 ramp

primary
#B5338F
secondary
#7DC693
accent
#DF7548
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5338F

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

Preview Lab → · Contrast checker → · Palette generator →

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