#B5338B#B5338B

#B5338B is a mid, vivid pink. Relative luminance 0.141; OKLCH L 54.5% C 0.188 H 343.7°. Best body text is #FFFFFF at 5.51:1 contrast (WCAG AA passes).

Color values

HEX#B5338B
RGBrgb(181, 51, 139)
HSLhsl(319, 56%, 45%)
HSVhsv(319, 72%, 71%)
CMYKcmyk(0%, 71.8%, 23.2%, 29%)
CIE-LABlab(44.32, 59.95, -19.80)
CIE-LCHlch(44.32, 63.14, 341.72°)
OKLaboklab(54.49% 0.1807 -0.0529)
OKLCHoklch(54.49% 0.188 343.7)
XYZxyz(24.9010, 14.0581, 25.8232)
Luminance0.1406 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B5338B #33B55D
analogous
#9E33B5 #B5338B #B5334A
triadic
#B5338B #8BB533 #338BB5
tetradic
#B5338B #B59E33 #33B55D #334AB5
square
#B5338B #B59E33 #33B55D #334AB5
split-complementary
#B5338B #4AB533 #33B59E
monochromatic
#561842 #852666 #B5338B #CF56A8 #DD86C1

Accessibility & contrast

On white

5.51
#B5338B on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B5338B
5.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B5338B#FFFFFF#000000##FFFFFF
##B5338B1.005.513.815.51
#FFFFFF5.511.0021.001.00
#0000003.8121.001.0021.00
##FFFFFF5.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#415B8D
Deuteranopia (green-blind)
#687188
Tritanopia (blue-blind)
#C1335B
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #b5338b;
/* rgb */ color: rgb(181, 51, 139);
/* oklch */ color: oklch(54.5% 0.188 343.7);
Tailwind
colors: {
  custom: {
    50: '#cf76ad',
    500: '#b5338b',
    950: '#000000',
  },
}
SCSS
$custom: #b5338b;
$custom-light: #cf76ad;
$custom-dark: #000000;
JSON
{
  "hex": "#b5338b",
  "rgb": {
    "r": 181,
    "g": 51,
    "b": 139
  },
  "hsl": {
    "h": 319.385,
    "s": 56.034,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54487,
    "c": 0.18826,
    "h": 343.7
  },
  "luminance": 0.14055
}

Semantic roles & 50–950 ramp

primary
#B5338B
secondary
#7DC695
accent
#DF7948
background
#FDF7FA
surface
#FAEEF4
border
#D3C9CE
text
#140910
muted
#837B7F

Preview Lab

Preview with #B5338B

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

Preview Lab → · Contrast checker → · Palette generator →

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