#B331B3#B331B3

#B331B3 is a mid, highly saturated purple. Relative luminance 0.150; OKLCH L 56.0% C 0.217 H 328.0°. Best body text is #FFFFFF at 5.24:1 contrast (WCAG AA passes).

Color values

HEX#B331B3
RGBrgb(179, 49, 179)
HSLhsl(300, 57%, 45%)
HSVhsv(300, 73%, 70%)
CMYKcmyk(0%, 72.6%, 0%, 29.8%)
CIE-LABlab(45.68, 66.12, -41.60)
CIE-LCHlch(45.68, 78.11, 327.82°)
OKLaboklab(56.04% 0.1845 -0.1152)
OKLCHoklch(56.04% 0.218 328)
XYZxyz(27.8251, 15.0370, 44.0760)
Luminance0.1504 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B3 #31B331
analogous
#7231B3 #B331B3 #B33172
triadic
#B331B3 #B3B331 #31B3B3
tetradic
#B331B3 #B37231 #31B331 #3172B3
square
#B331B3 #B37231 #31B331 #3172B3
split-complementary
#B331B3 #72B331 #31B372
monochromatic
#531753 #832483 #B331B3 #D052D0 #DD82DD

Accessibility & contrast

On white

5.24
#B331B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.01
#B331B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331B3
5.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B3#FFFFFF#000000##FFFFFF
##B331B31.005.244.015.24
#FFFFFF5.241.0021.001.00
#0000004.0121.001.0021.00
##FFFFFF5.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1761B7
Deuteranopia (green-blind)
#5472B0
Tritanopia (blue-blind)
#B9456F
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #b331b3;
/* rgb */ color: rgb(179, 49, 179);
/* oklch */ color: oklch(56.0% 0.217 328.0);
Tailwind
colors: {
  custom: {
    50: '#ce76ca',
    500: '#b331b3',
    950: '#000000',
  },
}
SCSS
$custom: #b331b3;
$custom-light: #ce76ca;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b3",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 179
  },
  "hsl": {
    "h": 300,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.56042,
    "c": 0.2175,
    "h": 328
  },
  "luminance": 0.15035
}

Semantic roles & 50–950 ramp

primary
#B331B3
secondary
#7AC67A
accent
#E04848
background
#FDF7FC
surface
#FAEEF8
border
#D3C9D1
text
#140A13
muted
#837C82

Preview Lab

Preview with #B331B3

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

Preview Lab → · Contrast checker → · Palette generator →

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