#B5338E#B5338E

#B5338E is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.6% C 0.190 H 342.4°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#B5338E
RGBrgb(181, 51, 142)
HSLhsl(318, 56%, 45%)
HSVhsv(318, 72%, 71%)
CMYKcmyk(0%, 71.8%, 21.5%, 29%)
CIE-LABlab(44.44, 60.35, -21.43)
CIE-LCHlch(44.44, 64.05, 340.45°)
OKLaboklab(54.62% 0.1812 -0.0574)
OKLCHoklch(54.62% 0.19 342.4)
XYZxyz(25.1232, 14.1469, 26.9935)
Luminance0.1414 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5338E #33B55A
analogous
#9B33B5 #B5338E #B5334D
triadic
#B5338E #8EB533 #338EB5
tetradic
#B5338E #B59B33 #33B55A #334DB5
square
#B5338E #B59B33 #33B55A #334DB5
split-complementary
#B5338E #4DB533 #33B59B
monochromatic
#561843 #852669 #B5338E #CF56AB #DD86C3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B5338E#FFFFFF#000000##FFFFFF
##B5338E1.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)
#3F5B91
Deuteranopia (green-blind)
#67718B
Tritanopia (blue-blind)
#C0345C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5338e;
/* rgb */ color: rgb(181, 51, 142);
/* oklch */ color: oklch(54.6% 0.190 342.4);
Tailwind
colors: {
  custom: {
    50: '#cf76af',
    500: '#b5338e',
    950: '#000000',
  },
}
SCSS
$custom: #b5338e;
$custom-light: #cf76af;
$custom-dark: #000000;
JSON
{
  "hex": "#b5338e",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 142
  },
  "hsl": {
    "h": 318,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.5462,
    "c": 0.19012,
    "h": 342.4
  },
  "luminance": 0.14144
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B5338E

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

Preview Lab → · Contrast checker → · Palette generator →

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