#B331AB#B331AB

#B331AB is a mid, highly saturated purple. Relative luminance 0.147; OKLCH L 55.6% C 0.211 H 330.7°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#B331AB
RGBrgb(179, 49, 171)
HSLhsl(304, 57%, 45%)
HSVhsv(304, 73%, 70%)
CMYKcmyk(0%, 72.6%, 4.5%, 29.8%)
CIE-LABlab(45.25, 64.83, -37.56)
CIE-LCHlch(45.25, 74.92, 329.91°)
OKLaboklab(55.59% 0.1843 -0.1035)
OKLCHoklch(55.59% 0.211 330.7)
XYZxyz(27.0393, 14.7227, 39.9378)
Luminance0.1472 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331AB #31B339
analogous
#7A31B3 #B331AB #B3316A
triadic
#B331AB #ABB331 #31ABB3
tetradic
#B331AB #B37A31 #31B339 #316AB3
square
#B331AB #B37A31 #31B339 #316AB3
split-complementary
#B331AB #6AB331 #31B37A
monochromatic
#53174F #83247D #B331AB #D052C8 #DD82D7

Accessibility & contrast

On white

5.32
#B331AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#B331AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331AB
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331AB#FFFFFF#000000##FFFFFF
##B331AB1.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AE
Deuteranopia (green-blind)
#5971A8
Tritanopia (blue-blind)
#BA416B
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b331ab;
/* rgb */ color: rgb(179, 49, 171);
/* oklch */ color: oklch(55.6% 0.211 330.7);
Tailwind
colors: {
  custom: {
    50: '#cd76c4',
    500: '#b331ab',
    950: '#000000',
  },
}
SCSS
$custom: #b331ab;
$custom-light: #cd76c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b331ab",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 171
  },
  "hsl": {
    "h": 303.692,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55592,
    "c": 0.21143,
    "h": 330.7
  },
  "luminance": 0.14721
}

Semantic roles & 50–950 ramp

primary
#B331AB
secondary
#7AC67F
accent
#E05148
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B331AB

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

Preview Lab → · Contrast checker → · Palette generator →

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