#B331A2#B331A2

#B331A2 is a mid, highly saturated purple. Relative luminance 0.144; OKLCH L 55.1% C 0.205 H 333.9°. Best body text is #FFFFFF at 5.42:1 contrast (WCAG AA passes).

Color values

HEX#B331A2
RGBrgb(179, 49, 162)
HSLhsl(308, 57%, 45%)
HSVhsv(308, 73%, 70%)
CMYKcmyk(0%, 72.6%, 9.5%, 29.8%)
CIE-LABlab(44.79, 63.43, -32.94)
CIE-LCHlch(44.79, 71.47, 332.56°)
OKLaboklab(55.11% 0.1839 -0.0902)
OKLCHoklch(55.11% 0.205 333.9)
XYZxyz(26.2105, 14.3912, 35.5728)
Luminance0.1439 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B331A2 #31B342
analogous
#8331B3 #B331A2 #B33161
triadic
#B331A2 #A2B331 #31A2B3
tetradic
#B331A2 #B38331 #31B342 #3161B3
square
#B331A2 #B38331 #31B342 #3161B3
split-complementary
#B331A2 #61B331 #31B383
monochromatic
#53174B #832477 #B331A2 #D052BF #DD82D1

Accessibility & contrast

On white

5.42
#B331A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#B331A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B331A2
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B331A2#FFFFFF#000000##FFFFFF
##B331A21.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#5D719F
Tritanopia (blue-blind)
#BB3D66
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b331a2;
/* rgb */ color: rgb(179, 49, 162);
/* oklch */ color: oklch(55.1% 0.205 333.9);
Tailwind
colors: {
  custom: {
    50: '#cd76be',
    500: '#b331a2',
    950: '#000000',
  },
}
SCSS
$custom: #b331a2;
$custom-light: #cd76be;
$custom-dark: #000000;
JSON
{
  "hex": "#b331a2",
  "rgb": {
    "r": 179,
    "g": 49,
    "b": 162
  },
  "hsl": {
    "h": 307.846,
    "s": 57.018,
    "l": 44.706
  },
  "oklch": {
    "l": 0.55109,
    "c": 0.2048,
    "h": 333.9
  },
  "luminance": 0.14389
}

Semantic roles & 50–950 ramp

primary
#B331A2
secondary
#7AC684
accent
#E05B48
background
#FDF7FB
surface
#FAEEF7
border
#D3C9D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B331A2

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

Preview Lab → · Contrast checker → · Palette generator →

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