#B5338D#B5338D

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

Color values

HEX#B5338D
RGBrgb(181, 51, 141)
HSLhsl(318, 56%, 45%)
HSVhsv(318, 72%, 71%)
CMYKcmyk(0%, 71.8%, 22.1%, 29%)
CIE-LABlab(44.40, 60.22, -20.89)
CIE-LCHlch(44.40, 63.74, 340.87°)
OKLaboklab(54.58% 0.1811 -0.0559)
OKLCHoklch(54.58% 0.19 342.8)
XYZxyz(25.0485, 14.1170, 26.5998)
Luminance0.1411 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5338D #33B55B
analogous
#9C33B5 #B5338D #B5334C
triadic
#B5338D #8DB533 #338DB5
tetradic
#B5338D #B59C33 #33B55B #334CB5
square
#B5338D #B59C33 #33B55B #334CB5
split-complementary
#B5338D #4CB533 #33B59C
monochromatic
#561843 #852668 #B5338D #CF56AA #DD86C2

Accessibility & contrast

On white

5.49
#B5338D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#B5338D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B5338D
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5338D#FFFFFF#000000##FFFFFF
##B5338D1.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#405B90
Deuteranopia (green-blind)
#68718A
Tritanopia (blue-blind)
#C0345C
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5338d;
/* rgb */ color: rgb(181, 51, 141);
/* oklch */ color: oklch(54.6% 0.190 342.8);
Tailwind
colors: {
  custom: {
    50: '#cf76ae',
    500: '#b5338d',
    950: '#000000',
  },
}
SCSS
$custom: #b5338d;
$custom-light: #cf76ae;
$custom-dark: #000000;
JSON
{
  "hex": "#b5338d",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 141
  },
  "hsl": {
    "h": 318.462,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54575,
    "c": 0.1895,
    "h": 342.8
  },
  "luminance": 0.14114
}

Semantic roles & 50–950 ramp

primary
#B5338D
secondary
#7DC694
accent
#DF7748
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5338D

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

Preview Lab → · Contrast checker → · Palette generator →

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