#B331B9#B331B9

#B331B9 is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.4% C 0.222 H 326.1°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#B331B9
RGBrgb(179, 49, 185)
HSLhsl(297, 58%, 46%)
HSVhsv(297, 74%, 73%)
CMYKcmyk(3.2%, 73.5%, 0%, 27.5%)
CIE-LABlab(46.02, 67.11, -44.58)
CIE-LCHlch(46.02, 80.57, 326.40°)
OKLaboklab(56.39% 0.1844 -0.1239)
OKLCHoklch(56.39% 0.222 326.1)
XYZxyz(28.4451, 15.2850, 47.3416)
Luminance0.1528 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B9 #37B931
analogous
#6F31B9 #B331B9 #B9317B
triadic
#B331B9 #B9B331 #31B9B3
tetradic
#B331B9 #B96F31 #37B931 #317BB9
square
#B331B9 #B96F31 #37B931 #317BB9
split-complementary
#B331B9 #7BB931 #31B96F
monochromatic
#551758 #842489 #B331B9 #CD55D2 #DB86DF

Accessibility & contrast

On white

5.18
#B331B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#B331B9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331B9
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B9#FFFFFF#000000##FFFFFF
##B331B91.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0563BD
Deuteranopia (green-blind)
#5173B6
Tritanopia (blue-blind)
#B84873
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b331b9;
/* rgb */ color: rgb(179, 49, 185);
/* oklch */ color: oklch(56.4% 0.222 326.1);
Tailwind
colors: {
  custom: {
    50: '#ce77ce',
    500: '#b331b9',
    950: '#000000',
  },
}
SCSS
$custom: #b331b9;
$custom-light: #ce77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b9",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 185
  },
  "hsl": {
    "h": 297.353,
    "s": 58.12,
    "l": 45.882
  },
  "oklch": {
    "l": 0.56392,
    "c": 0.22215,
    "h": 326.1
  },
  "luminance": 0.15283
}

Semantic roles & 50–950 ramp

primary
#B331B9
secondary
#81C87D
accent
#E1464D
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B331B9

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

Preview Lab → · Contrast checker → · Palette generator →

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