#B331AC#B331AC

#B331AC is a mid, highly saturated purple. Relative luminance 0.148; OKLCH L 55.6% C 0.212 H 330.3°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#B331AC
RGBrgb(179, 49, 172)
HSLhsl(303, 57%, 45%)
HSVhsv(303, 73%, 70%)
CMYKcmyk(0%, 72.6%, 3.9%, 29.8%)
CIE-LABlab(45.31, 64.98, -38.07)
CIE-LCHlch(45.31, 75.31, 329.64°)
OKLaboklab(55.65% 0.1844 -0.105)
OKLCHoklch(55.65% 0.212 330.3)
XYZxyz(27.1350, 14.7610, 40.4417)
Luminance0.1476 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331AC #31B338
analogous
#7931B3 #B331AC #B3316B
triadic
#B331AC #ACB331 #31ACB3
tetradic
#B331AC #B37931 #31B338 #316BB3
square
#B331AC #B37931 #31B338 #316BB3
split-complementary
#B331AC #6BB331 #31B379
monochromatic
#531750 #83247E #B331AC #D052C9 #DD82D8

Accessibility & contrast

On white

5.31
#B331AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#B331AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331AC
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331AC#FFFFFF#000000##FFFFFF
##B331AC1.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2360AF
Deuteranopia (green-blind)
#5871A9
Tritanopia (blue-blind)
#BA426C
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b331ac;
/* rgb */ color: rgb(179, 49, 172);
/* oklch */ color: oklch(55.6% 0.212 330.3);
Tailwind
colors: {
  custom: {
    50: '#cd76c5',
    500: '#b331ac',
    950: '#000000',
  },
}
SCSS
$custom: #b331ac;
$custom-light: #cd76c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b331ac",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 172
  },
  "hsl": {
    "h": 303.231,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55647,
    "c": 0.21218,
    "h": 330.3
  },
  "luminance": 0.14759
}

Semantic roles & 50–950 ramp

primary
#B331AC
secondary
#7AC67E
accent
#E05048
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B331AC

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

Preview Lab → · Contrast checker → · Palette generator →

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