#B5338A#B5338A

#B5338A is a mid, vivid pink. Relative luminance 0.140; OKLCH L 54.4% C 0.188 H 344.1°. Best body text is #FFFFFF at 5.52:1 contrast (WCAG AA passes).

Color values

HEX#B5338A
RGBrgb(181, 51, 138)
HSLhsl(320, 56%, 45%)
HSVhsv(320, 72%, 71%)
CMYKcmyk(0%, 71.8%, 23.8%, 29%)
CIE-LABlab(44.27, 59.82, -19.26)
CIE-LCHlch(44.27, 62.84, 342.15°)
OKLaboklab(54.44% 0.1805 -0.0514)
OKLCHoklch(54.44% 0.188 344.1)
XYZxyz(24.8283, 14.0290, 25.4401)
Luminance0.1403 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5338A #33B55E
analogous
#9F33B5 #B5338A #B53349
triadic
#B5338A #8AB533 #338AB5
tetradic
#B5338A #B59F33 #33B55E #3349B5
square
#B5338A #B59F33 #33B55E #3349B5
split-complementary
#B5338A #49B533 #33B59F
monochromatic
#561841 #852666 #B5338A #CF56A7 #DD86C0

Accessibility & contrast

On white

5.52
#B5338A on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.81
#B5338A on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5338A
5.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5338A#FFFFFF#000000##FFFFFF
##B5338A1.005.523.815.52
#FFFFFF5.521.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8C
Deuteranopia (green-blind)
#697187
Tritanopia (blue-blind)
#C1325A
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5338a;
/* rgb */ color: rgb(181, 51, 138);
/* oklch */ color: oklch(54.4% 0.188 344.1);
Tailwind
colors: {
  custom: {
    50: '#cf76ac',
    500: '#b5338a',
    950: '#000000',
  },
}
SCSS
$custom: #b5338a;
$custom-light: #cf76ac;
$custom-dark: #000000;
JSON
{
  "hex": "#b5338a",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 319.846,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54443,
    "c": 0.18766,
    "h": 344.1
  },
  "luminance": 0.14026
}

Semantic roles & 50–950 ramp

primary
#B5338A
secondary
#7DC696
accent
#DF7A48
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5338A

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

Preview Lab → · Contrast checker → · Palette generator →

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