#B331B1#B331B1

#B331B1 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 55.9% C 0.216 H 328.7°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#B331B1
RGBrgb(179, 49, 177)
HSLhsl(301, 57%, 45%)
HSVhsv(301, 73%, 70%)
CMYKcmyk(0%, 72.6%, 1.1%, 29.8%)
CIE-LABlab(45.57, 65.79, -40.59)
CIE-LCHlch(45.57, 77.30, 328.33°)
OKLaboklab(55.93% 0.1845 -0.1123)
OKLCHoklch(55.93% 0.216 328.7)
XYZxyz(27.6243, 14.9567, 43.0184)
Luminance0.1495 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B1 #31B333
analogous
#7431B3 #B331B1 #B33170
triadic
#B331B1 #B1B331 #31B1B3
tetradic
#B331B1 #B37431 #31B333 #3170B3
square
#B331B1 #B37431 #31B333 #3170B3
split-complementary
#B331B1 #70B331 #31B374
monochromatic
#531752 #832481 #B331B1 #D052CE #DD82DB

Accessibility & contrast

On white

5.26
#B331B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#B331B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331B1
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B1#FFFFFF#000000##FFFFFF
##B331B11.005.263.995.26
#FFFFFF5.261.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B61B5
Deuteranopia (green-blind)
#5572AE
Tritanopia (blue-blind)
#B9446E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b331b1;
/* rgb */ color: rgb(179, 49, 177);
/* oklch */ color: oklch(55.9% 0.216 328.7);
Tailwind
colors: {
  custom: {
    50: '#cd76c9',
    500: '#b331b1',
    950: '#000000',
  },
}
SCSS
$custom: #b331b1;
$custom-light: #cd76c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b1",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 177
  },
  "hsl": {
    "h": 300.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55928,
    "c": 0.21597,
    "h": 328.7
  },
  "luminance": 0.14955
}

Semantic roles & 50–950 ramp

primary
#B331B1
secondary
#7AC67B
accent
#E04A48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B331B1

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

Preview Lab → · Contrast checker → · Palette generator →

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