#B331BA#B331BA

#B331BA is a mid, highly saturated purple. Relative luminance 0.153; OKLCH L 56.5% C 0.223 H 325.8°. Best body text is #FFFFFF at 5.17:1 contrast (WCAG AA passes).

Color values

HEX#B331BA
RGBrgb(179, 49, 186)
HSLhsl(297, 58%, 46%)
HSVhsv(297, 74%, 73%)
CMYKcmyk(3.8%, 73.7%, 0%, 27.1%)
CIE-LABlab(46.08, 67.28, -45.08)
CIE-LCHlch(46.08, 80.98, 326.18°)
OKLaboklab(56.45% 0.1843 -0.1254)
OKLCHoklch(56.45% 0.223 325.8)
XYZxyz(28.5510, 15.3274, 47.8995)
Luminance0.1533 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331BA #38BA31
analogous
#6E31BA #B331BA #BA317C
triadic
#B331BA #BAB331 #31BAB3
tetradic
#B331BA #BA6E31 #38BA31 #317CBA
square
#B331BA #BA6E31 #38BA31 #317CBA
split-complementary
#B331BA #7CBA31 #31BA6E
monochromatic
#561759 #84248A #B331BA #CC56D2 #DB86DF

Accessibility & contrast

On white

5.17
#B331BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#B331BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331BA
5.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331BA#FFFFFF#000000##FFFFFF
##B331BA1.005.174.075.17
#FFFFFF5.171.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0163BE
Deuteranopia (green-blind)
#5073B7
Tritanopia (blue-blind)
#B74973
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #b331ba;
/* rgb */ color: rgb(179, 49, 186);
/* oklch */ color: oklch(56.5% 0.223 325.8);
Tailwind
colors: {
  custom: {
    50: '#ce77cf',
    500: '#b331ba',
    950: '#000000',
  },
}
SCSS
$custom: #b331ba;
$custom-light: #ce77cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b331ba",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 186
  },
  "hsl": {
    "h": 296.934,
    "s": 58.298,
    "l": 46.078
  },
  "oklch": {
    "l": 0.56451,
    "c": 0.22293,
    "h": 325.8
  },
  "luminance": 0.15326
}

Semantic roles & 50–950 ramp

primary
#B331BA
secondary
#82C97E
accent
#E2464E
background
#FDF7FC
surface
#FAEEF9
border
#D3C9D2
text
#140A14
muted
#837C82

Preview Lab

Preview with #B331BA

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

Preview Lab → · Contrast checker → · Palette generator →

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