#B331D3#B331D3

#B331D3 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.0% C 0.243 H 318.6°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B331D3
RGBrgb(179, 49, 211)
HSLhsl(288, 65%, 51%)
HSVhsv(288, 77%, 83%)
CMYKcmyk(15.2%, 76.8%, 0%, 17.3%)
CIE-LABlab(47.60, 71.66, -57.12)
CIE-LCHlch(47.60, 91.64, 321.44°)
OKLaboklab(58.02% 0.1823 -0.1606)
OKLCHoklch(58.02% 0.243 318.6)
XYZxyz(31.4450, 16.4850, 63.1410)
Luminance0.1648 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331D3 #51D331
analogous
#6231D3 #B331D3 #D331A2
triadic
#B331D3 #D3B331 #31D3B3
tetradic
#B331D3 #D36231 #51D331 #31A2D3
square
#B331D3 #D36231 #51D331 #31A2D3
split-complementary
#B331D3 #A2D331 #31D362
monochromatic
#601871 #8A23A4 #B331D3 #C663DE #D896E9

Accessibility & contrast

On white

4.89
#B331D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B331D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331D3
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331D3#FFFFFF#000000##FFFFFF
##B331D31.004.894.304.89
#FFFFFF4.891.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D7
Deuteranopia (green-blind)
#3B75CF
Tritanopia (blue-blind)
#B25481
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b331d3;
/* rgb */ color: rgb(179, 49, 211);
/* oklch */ color: oklch(58.0% 0.243 318.6);
Tailwind
colors: {
  custom: {
    50: '#ce78e1',
    500: '#b331d3',
    950: '#000000',
  },
}
SCSS
$custom: #b331d3;
$custom-light: #ce78e1;
$custom-dark: #000000;
JSON
{
  "hex": "#b331d3",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 211
  },
  "hsl": {
    "h": 288.148,
    "s": 64.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.58021,
    "c": 0.24293,
    "h": 318.6
  },
  "luminance": 0.16483
}

Semantic roles & 50–950 ramp

primary
#B331D3
secondary
#9AD48C
accent
#E84061
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B331D3

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

Preview Lab → · Contrast checker → · Palette generator →

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