#B331B4#B331B4

#B331B4 is a mid, highly saturated purple. Relative luminance 0.151; OKLCH L 56.1% C 0.218 H 327.7°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#B331B4
RGBrgb(179, 49, 180)
HSLhsl(300, 57%, 45%)
HSVhsv(300, 73%, 71%)
CMYKcmyk(0.6%, 72.8%, 0%, 29.4%)
CIE-LABlab(45.74, 66.28, -42.10)
CIE-LCHlch(45.74, 78.52, 327.58°)
OKLaboklab(56.1% 0.1845 -0.1167)
OKLCHoklch(56.1% 0.218 327.7)
XYZxyz(27.9266, 15.0776, 44.6106)
Luminance0.1508 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B4 #32B431
analogous
#7231B4 #B331B4 #B43174
triadic
#B331B4 #B4B331 #31B4B3
tetradic
#B331B4 #B47231 #32B431 #3174B4
square
#B331B4 #B47231 #32B431 #3174B4
split-complementary
#B331B4 #74B431 #31B472
monochromatic
#531754 #832484 #B331B4 #CF52D0 #DC82DD

Accessibility & contrast

On white

5.23
#B331B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B331B4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B4#FFFFFF#000000##FFFFFF
##B331B41.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1562B8
Deuteranopia (green-blind)
#5472B1
Tritanopia (blue-blind)
#B84670
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b331b4;
/* rgb */ color: rgb(179, 49, 180);
/* oklch */ color: oklch(56.1% 0.218 327.7);
Tailwind
colors: {
  custom: {
    50: '#ce76cb',
    500: '#b331b4',
    950: '#000000',
  },
}
SCSS
$custom: #b331b4;
$custom-light: #ce76cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b4",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 180
  },
  "hsl": {
    "h": 299.542,
    "s": 57.205,
    "l": 44.902
  },
  "oklch": {
    "l": 0.561,
    "c": 0.21827,
    "h": 327.7
  },
  "luminance": 0.15076
}

Semantic roles & 50–950 ramp

primary
#B331B4
secondary
#7BC67B
accent
#E04749
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B331B4

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

Preview Lab → · Contrast checker → · Palette generator →

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