#B331B5#B331B5

#B331B5 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.2% C 0.219 H 327.4°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#B331B5
RGBrgb(179, 49, 181)
HSLhsl(299, 57%, 45%)
HSVhsv(299, 73%, 71%)
CMYKcmyk(1.1%, 72.9%, 0%, 29%)
CIE-LABlab(45.80, 66.44, -42.59)
CIE-LCHlch(45.80, 78.92, 327.34°)
OKLaboklab(56.16% 0.1845 -0.1181)
OKLCHoklch(56.16% 0.219 327.4)
XYZxyz(28.0288, 15.1185, 45.1490)
Luminance0.1512 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B5 #33B531
analogous
#7131B5 #B331B5 #B53175
triadic
#B331B5 #B5B331 #31B5B3
tetradic
#B331B5 #B57131 #33B531 #3175B5
square
#B331B5 #B57131 #33B531 #3175B5
split-complementary
#B331B5 #75B531 #31B571
monochromatic
#541755 #832485 #B331B5 #CE53D0 #DC83DD

Accessibility & contrast

On white

5.22
#B331B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#B331B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331B5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B5#FFFFFF#000000##FFFFFF
##B331B51.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1362B9
Deuteranopia (green-blind)
#5372B2
Tritanopia (blue-blind)
#B84671
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b331b5;
/* rgb */ color: rgb(179, 49, 181);
/* oklch */ color: oklch(56.2% 0.219 327.4);
Tailwind
colors: {
  custom: {
    50: '#ce76cc',
    500: '#b331b5',
    950: '#000000',
  },
}
SCSS
$custom: #b331b5;
$custom-light: #ce76cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b5",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 181
  },
  "hsl": {
    "h": 299.091,
    "s": 57.391,
    "l": 45.098
  },
  "oklch": {
    "l": 0.56157,
    "c": 0.21904,
    "h": 327.4
  },
  "luminance": 0.15117
}

Semantic roles & 50–950 ramp

primary
#B331B5
secondary
#7CC77B
accent
#E14749
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B331B5

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

Preview Lab → · Contrast checker → · Palette generator →

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