#B321B2#B321B2

#B321B2 is a mid, highly saturated purple. Relative luminance 0.139; OKLCH L 54.9% C 0.231 H 328.5°. Best body text is #FFFFFF at 5.56:1 contrast (WCAG AA passes).

Color values

HEX#B321B2
RGBrgb(179, 33, 178)
HSLhsl(300, 69%, 42%)
HSVhsv(300, 82%, 70%)
CMYKcmyk(0%, 81.6%, 0.6%, 29.8%)
CIE-LABlab(44.07, 70.44, -43.57)
CIE-LCHlch(44.07, 82.83, 328.26°)
OKLaboklab(54.87% 0.1972 -0.1209)
OKLCHoklch(54.87% 0.231 328.5)
XYZxyz(27.1699, 13.8879, 43.3605)
Luminance0.1389 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B321B2 #21B322
analogous
#6B21B3 #B321B2 #B32169
triadic
#B321B2 #B2B321 #21B2B3
tetradic
#B321B2 #B36B21 #21B322 #2169B3
square
#B321B2 #B36B21 #21B322 #2169B3
split-complementary
#B321B2 #69B321 #21B36B
monochromatic
#4C0E4B #7F177F #B321B2 #DA37D9 #E46BE3

Accessibility & contrast

On white

5.56
#B321B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#B321B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B321B2
5.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B321B2#FFFFFF#000000##FFFFFF
##B321B21.005.563.785.56
#FFFFFF5.561.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB6
Deuteranopia (green-blind)
#4E6FAF
Tritanopia (blue-blind)
#B93C6B
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #b321b2;
/* rgb */ color: rgb(179, 33, 178);
/* oklch */ color: oklch(54.9% 0.231 328.5);
Tailwind
colors: {
  custom: {
    50: '#ce71c9',
    500: '#b321b2',
    950: '#000000',
  },
}
SCSS
$custom: #b321b2;
$custom-light: #ce71c9;
$custom-dark: #000000;
JSON
{
  "hex": "#b321b2",
  "rgb": {
    "r": 179,
    "g": 33,
    "b": 178
  },
  "hsl": {
    "h": 300.411,
    "s": 68.868,
    "l": 41.569
  },
  "oklch": {
    "l": 0.54875,
    "c": 0.2313,
    "h": 328.5
  },
  "luminance": 0.13886
}

Semantic roles & 50–950 ramp

primary
#B321B2
secondary
#66CA67
accent
#EC3D3C
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B321B2

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

Preview Lab → · Contrast checker → · Palette generator →

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