#B331B0#B331B0

#B331B0 is a mid, highly saturated purple. Relative luminance 0.149; OKLCH L 55.9% C 0.215 H 329.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#B331B0
RGBrgb(179, 49, 176)
HSLhsl(301, 57%, 45%)
HSVhsv(301, 73%, 70%)
CMYKcmyk(0%, 72.6%, 1.7%, 29.8%)
CIE-LABlab(45.52, 65.63, -40.09)
CIE-LCHlch(45.52, 76.90, 328.58°)
OKLaboklab(55.87% 0.1845 -0.1109)
OKLCHoklch(55.87% 0.215 329)
XYZxyz(27.5249, 14.9170, 42.4954)
Luminance0.1492 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B0 #31B334
analogous
#7531B3 #B331B0 #B3316F
triadic
#B331B0 #B0B331 #31B0B3
tetradic
#B331B0 #B37531 #31B334 #316FB3
square
#B331B0 #B37531 #31B334 #316FB3
split-complementary
#B331B0 #6FB331 #31B375
monochromatic
#531752 #832481 #B331B0 #D052CD #DD82DB

Accessibility & contrast

On white

5.27
#B331B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#B331B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331B0
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B0#FFFFFF#000000##FFFFFF
##B331B01.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D61B3
Deuteranopia (green-blind)
#5672AD
Tritanopia (blue-blind)
#B9446E
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b331b0;
/* rgb */ color: rgb(179, 49, 176);
/* oklch */ color: oklch(55.9% 0.215 329.0);
Tailwind
colors: {
  custom: {
    50: '#cd76c8',
    500: '#b331b0',
    950: '#000000',
  },
}
SCSS
$custom: #b331b0;
$custom-light: #cd76c8;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b0",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 176
  },
  "hsl": {
    "h": 301.385,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55871,
    "c": 0.21521,
    "h": 329
  },
  "luminance": 0.14915
}

Semantic roles & 50–950 ramp

primary
#B331B0
secondary
#7AC67C
accent
#E04B48
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B331B0

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

Preview Lab → · Contrast checker → · Palette generator →

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