#B21DB3#B21DB3

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

Color values

HEX#B21DB3
RGBrgb(178, 29, 179)
HSLhsl(300, 72%, 41%)
HSVhsv(300, 84%, 70%)
CMYKcmyk(0.6%, 83.8%, 0%, 29.8%)
CIE-LABlab(43.65, 71.29, -44.84)
CIE-LCHlch(43.65, 84.22, 327.83°)
OKLaboklab(54.57% 0.1986 -0.1246)
OKLCHoklch(54.57% 0.234 327.9)
XYZxyz(26.9358, 13.6004, 43.8456)
Luminance0.1360 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21DB3 #1EB31D
analogous
#671DB3 #B21DB3 #B31D69
triadic
#B21DB3 #B3B21D #1DB3B2
tetradic
#B21DB3 #B3671D #1EB31D #1D69B3
square
#B21DB3 #B3671D #1EB31D #1D69B3
split-complementary
#B21DB3 #69B31D #1DB367
monochromatic
#490C4A #7E147E #B21DB3 #DC30DD #E564E6

Accessibility & contrast

On white

5.65
#B21DB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#B21DB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21DB3
5.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21DB3#FFFFFF#000000##FFFFFF
##B21DB31.005.653.725.65
#FFFFFF5.651.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.651.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b21db3;
/* rgb */ color: rgb(178, 29, 179);
/* oklch */ color: oklch(54.6% 0.234 327.9);
Tailwind
colors: {
  custom: {
    50: '#cd6fca',
    500: '#b21db3',
    950: '#000000',
  },
}
SCSS
$custom: #b21db3;
$custom-light: #cd6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b21db3",
  "rgb": {
    "r": 178,
    "g": 29,
    "b": 179
  },
  "hsl": {
    "h": 299.6,
    "s": 72.115,
    "l": 40.784
  },
  "oklch": {
    "l": 0.54566,
    "c": 0.23446,
    "h": 327.9
  },
  "luminance": 0.13598
}

Semantic roles & 50–950 ramp

primary
#B21DB3
secondary
#62CB61
accent
#EF393A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B21DB3

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

Preview Lab → · Contrast checker → · Palette generator →

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