#B331A4#B331A4

#B331A4 is a mid, highly saturated purple. Relative luminance 0.145; OKLCH L 55.2% C 0.206 H 333.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#B331A4
RGBrgb(179, 49, 164)
HSLhsl(307, 57%, 45%)
HSVhsv(307, 73%, 70%)
CMYKcmyk(0%, 72.6%, 8.4%, 29.8%)
CIE-LABlab(44.89, 63.73, -33.97)
CIE-LCHlch(44.89, 72.22, 331.94°)
OKLaboklab(55.21% 0.184 -0.0932)
OKLCHoklch(55.21% 0.206 333.1)
XYZxyz(26.3897, 14.4629, 36.5165)
Luminance0.1446 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331A4 #31B340
analogous
#8131B3 #B331A4 #B33163
triadic
#B331A4 #A4B331 #31A4B3
tetradic
#B331A4 #B38131 #31B340 #3163B3
square
#B331A4 #B38131 #31B340 #3163B3
split-complementary
#B331A4 #63B331 #31B381
monochromatic
#53174C #832478 #B331A4 #D052C1 #DD82D2

Accessibility & contrast

On white

5.40
#B331A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#B331A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331A4
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331A4#FFFFFF#000000##FFFFFF
##B331A41.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA7
Deuteranopia (green-blind)
#5C71A1
Tritanopia (blue-blind)
#BB3E67
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b331a4;
/* rgb */ color: rgb(179, 49, 164);
/* oklch */ color: oklch(55.2% 0.206 333.1);
Tailwind
colors: {
  custom: {
    50: '#cd76bf',
    500: '#b331a4',
    950: '#000000',
  },
}
SCSS
$custom: #b331a4;
$custom-light: #cd76bf;
$custom-dark: #000000;
JSON
{
  "hex": "#b331a4",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 164
  },
  "hsl": {
    "h": 306.923,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55214,
    "c": 0.20625,
    "h": 333.1
  },
  "luminance": 0.14461
}

Semantic roles & 50–950 ramp

primary
#B331A4
secondary
#7AC683
accent
#E05948
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B331A4

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

Preview Lab → · Contrast checker → · Palette generator →

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