#B331A1#B331A1

#B331A1 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.1% C 0.204 H 334.2°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B331A1
RGBrgb(179, 49, 161)
HSLhsl(308, 57%, 45%)
HSVhsv(308, 73%, 70%)
CMYKcmyk(0%, 72.6%, 10.1%, 29.8%)
CIE-LABlab(44.74, 63.28, -32.42)
CIE-LCHlch(44.74, 71.10, 332.87°)
OKLaboklab(55.06% 0.1838 -0.0887)
OKLCHoklch(55.06% 0.204 334.2)
XYZxyz(26.1220, 14.3558, 35.1065)
Luminance0.1435 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331A1 #31B343
analogous
#8431B3 #B331A1 #B33160
triadic
#B331A1 #A1B331 #31A1B3
tetradic
#B331A1 #B38431 #31B343 #3160B3
square
#B331A1 #B38431 #31B343 #3160B3
split-complementary
#B331A1 #60B331 #31B384
monochromatic
#53174B #832476 #B331A1 #D052BE #DD82D0

Accessibility & contrast

On white

5.43
#B331A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B331A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331A1
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331A1#FFFFFF#000000##FFFFFF
##B331A11.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5EA4
Deuteranopia (green-blind)
#5E719E
Tritanopia (blue-blind)
#BB3C66
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b331a1;
/* rgb */ color: rgb(179, 49, 161);
/* oklch */ color: oklch(55.1% 0.204 334.2);
Tailwind
colors: {
  custom: {
    50: '#cd76bd',
    500: '#b331a1',
    950: '#000000',
  },
}
SCSS
$custom: #b331a1;
$custom-light: #cd76bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b331a1",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 161
  },
  "hsl": {
    "h": 308.308,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55056,
    "c": 0.20407,
    "h": 334.2
  },
  "luminance": 0.14354
}

Semantic roles & 50–950 ramp

primary
#B331A1
secondary
#7AC684
accent
#E05D48
background
#FDF7FB
surface
#FAEEF6
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B331A1

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

Preview Lab → · Contrast checker → · Palette generator →

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