#B331B8#B331B8

#B331B8 is a mid, highly saturated purple. Relative luminance 0.152; OKLCH L 56.3% C 0.221 H 326.4°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#B331B8
RGBrgb(179, 49, 184)
HSLhsl(298, 58%, 46%)
HSVhsv(298, 73%, 72%)
CMYKcmyk(2.7%, 73.4%, 0%, 27.8%)
CIE-LABlab(45.97, 66.94, -44.09)
CIE-LCHlch(45.97, 80.15, 326.63°)
OKLaboklab(56.33% 0.1844 -0.1225)
OKLCHoklch(56.33% 0.221 326.4)
XYZxyz(28.3399, 15.2430, 46.7876)
Luminance0.1524 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331B8 #36B831
analogous
#6F31B8 #B331B8 #B83179
triadic
#B331B8 #B8B331 #31B8B3
tetradic
#B331B8 #B86F31 #36B831 #3179B8
square
#B331B8 #B86F31 #36B831 #3179B8
split-complementary
#B331B8 #79B831 #31B86F
monochromatic
#551757 #842488 #B331B8 #CD55D2 #DB85DE

Accessibility & contrast

On white

5.19
#B331B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#B331B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331B8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331B8#FFFFFF#000000##FFFFFF
##B331B81.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0962BC
Deuteranopia (green-blind)
#5172B5
Tritanopia (blue-blind)
#B84872
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b331b8;
/* rgb */ color: rgb(179, 49, 184);
/* oklch */ color: oklch(56.3% 0.221 326.4);
Tailwind
colors: {
  custom: {
    50: '#ce77ce',
    500: '#b331b8',
    950: '#000000',
  },
}
SCSS
$custom: #b331b8;
$custom-light: #ce77ce;
$custom-dark: #000000;
JSON
{
  "hex": "#b331b8",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 184
  },
  "hsl": {
    "h": 297.778,
    "s": 57.94,
    "l": 45.686
  },
  "oklch": {
    "l": 0.56333,
    "c": 0.22136,
    "h": 326.4
  },
  "luminance": 0.15241
}

Semantic roles & 50–950 ramp

primary
#B331B8
secondary
#80C87D
accent
#E1474C
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A13
muted
#837C82

Preview Lab

Preview with #B331B8

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

Preview Lab → · Contrast checker → · Palette generator →

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