#B331B6#B331B6

#B331B6 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.2% C 0.220 H 327.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#B331B6
RGBrgb(179, 49, 182)
HSLhsl(299, 58%, 45%)
HSVhsv(299, 73%, 71%)
CMYKcmyk(1.6%, 73.1%, 0%, 28.6%)
CIE-LABlab(45.85, 66.61, -43.09)
CIE-LCHlch(45.85, 79.33, 327.10°)
OKLaboklab(56.22% 0.1844 -0.1196)
OKLCHoklch(56.22% 0.22 327)
XYZxyz(28.1318, 15.1597, 45.6913)
Luminance0.1516 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B6 #34B631
analogous
#7131B6 #B331B6 #B63176
triadic
#B331B6 #B6B331 #31B6B3
tetradic
#B331B6 #B67131 #34B631 #3176B6
square
#B331B6 #B67131 #34B631 #3176B6
split-complementary
#B331B6 #76B631 #31B671
monochromatic
#541756 #842486 #B331B6 #CE53D1 #DC84DE

Accessibility & contrast

On white

5.21
#B331B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#B331B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331B6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B6#FFFFFF#000000##FFFFFF
##B331B61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1062BA
Deuteranopia (green-blind)
#5272B3
Tritanopia (blue-blind)
#B84771
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b331b6;
/* rgb */ color: rgb(179, 49, 182);
/* oklch */ color: oklch(56.2% 0.220 327.0);
Tailwind
colors: {
  custom: {
    50: '#ce77cc',
    500: '#b331b6',
    950: '#000000',
  },
}
SCSS
$custom: #b331b6;
$custom-light: #ce77cc;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b6",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 182
  },
  "hsl": {
    "h": 298.647,
    "s": 57.576,
    "l": 45.294
  },
  "oklch": {
    "l": 0.56216,
    "c": 0.21981,
    "h": 327
  },
  "luminance": 0.15158
}

Semantic roles & 50–950 ramp

primary
#B331B6
secondary
#7DC77C
accent
#E1474A
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B331B6

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

Preview Lab → · Contrast checker → · Palette generator →

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