#B331A7#B331A7

#B331A7 is a mid, highly saturated purple. Relative luminance 0.146; OKLCH L 55.4% C 0.208 H 332.1°. Best body text is #FFFFFF at 5.37:1 contrast (WCAG AA passes).

Color values

HEX#B331A7
RGBrgb(179, 49, 167)
HSLhsl(306, 57%, 45%)
HSVhsv(306, 73%, 70%)
CMYKcmyk(0%, 72.6%, 6.7%, 29.8%)
CIE-LABlab(45.04, 64.20, -35.52)
CIE-LCHlch(45.04, 73.37, 331.05°)
OKLaboklab(55.37% 0.1842 -0.0976)
OKLCHoklch(55.37% 0.208 332.1)
XYZxyz(26.6638, 14.5725, 37.9602)
Luminance0.1457 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331A7 #31B33D
analogous
#7E31B3 #B331A7 #B33166
triadic
#B331A7 #A7B331 #31A7B3
tetradic
#B331A7 #B37E31 #31B33D #3166B3
square
#B331A7 #B37E31 #31B33D #3166B3
split-complementary
#B331A7 #66B331 #31B37E
monochromatic
#53174D #83247A #B331A7 #D052C4 #DD82D4

Accessibility & contrast

On white

5.37
#B331A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.91
#B331A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331A7
5.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331A7#FFFFFF#000000##FFFFFF
##B331A71.005.373.915.37
#FFFFFF5.371.0021.001.00
#0000003.9121.001.0021.00
##FFFFFF5.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAA
Deuteranopia (green-blind)
#5B71A4
Tritanopia (blue-blind)
#BB3F69
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #b331a7;
/* rgb */ color: rgb(179, 49, 167);
/* oklch */ color: oklch(55.4% 0.208 332.1);
Tailwind
colors: {
  custom: {
    50: '#cd76c1',
    500: '#b331a7',
    950: '#000000',
  },
}
SCSS
$custom: #b331a7;
$custom-light: #cd76c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b331a7",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 167
  },
  "hsl": {
    "h": 305.538,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55374,
    "c": 0.20845,
    "h": 332.1
  },
  "luminance": 0.1457
}

Semantic roles & 50–950 ramp

primary
#B331A7
secondary
#7AC681
accent
#E05648
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B331A7

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

Preview Lab → · Contrast checker → · Palette generator →

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