#B21CB3#B21CB3

#B21CB3 is a mid, highly saturated purple. Relative luminance 0.136; OKLCH L 54.5% C 0.235 H 327.9°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#B21CB3
RGBrgb(178, 28, 179)
HSLhsl(300, 73%, 41%)
HSVhsv(300, 84%, 70%)
CMYKcmyk(0.6%, 84.4%, 0%, 29.8%)
CIE-LABlab(43.58, 71.50, -44.95)
CIE-LCHlch(43.58, 84.45, 327.84°)
OKLaboklab(54.52% 0.1992 -0.1249)
OKLCHoklch(54.52% 0.235 327.9)
XYZxyz(26.9117, 13.5522, 43.8375)
Luminance0.1355 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21CB3 #1DB31C
analogous
#671CB3 #B21CB3 #B31C68
triadic
#B21CB3 #B3B21C #1CB3B2
tetradic
#B21CB3 #B3671C #1DB31C #1C68B3
square
#B21CB3 #B3671C #1DB31C #1C68B3
split-complementary
#B21CB3 #68B31C #1CB367
monochromatic
#490B49 #7D147E #B21CB3 #DD2EDE #E663E7

Accessibility & contrast

On white

5.66
#B21CB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#B21CB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21CB3
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21CB3#FFFFFF#000000##FFFFFF
##B21CB31.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BB7
Deuteranopia (green-blind)
#4B6DB0
Tritanopia (blue-blind)
#B83A6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b21cb3;
/* rgb */ color: rgb(178, 28, 179);
/* oklch */ color: oklch(54.5% 0.235 327.9);
Tailwind
colors: {
  custom: {
    50: '#cd6fca',
    500: '#b21cb3',
    950: '#000000',
  },
}
SCSS
$custom: #b21cb3;
$custom-light: #cd6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b21cb3",
  "rgb": {
    "r": 178,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 299.603,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54516,
    "c": 0.23512,
    "h": 327.9
  },
  "luminance": 0.1355
}

Semantic roles & 50–950 ramp

primary
#B21CB3
secondary
#60CB5F
accent
#F03839
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B21CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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