#B21BB3#B21BB3

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

Color values

HEX#B21BB3
RGBrgb(178, 27, 179)
HSLhsl(300, 74%, 40%)
HSVhsv(300, 85%, 70%)
CMYKcmyk(0.6%, 84.9%, 0%, 29.8%)
CIE-LABlab(43.52, 71.70, -45.06)
CIE-LCHlch(43.52, 84.68, 327.85°)
OKLaboklab(54.47% 0.1998 -0.1252)
OKLCHoklch(54.47% 0.236 327.9)
XYZxyz(26.8884, 13.5056, 43.8297)
Luminance0.1350 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21BB3 #1CB31B
analogous
#661BB3 #B21BB3 #B31B68
triadic
#B21BB3 #B3B21B #1BB3B2
tetradic
#B21BB3 #B3661B #1CB31B #1B68B3
square
#B21BB3 #B3661B #1CB31B #1B68B3
split-complementary
#B21BB3 #68B31B #1BB366
monochromatic
#480B49 #7D137E #B21BB3 #DE2CDF #E661E7

Accessibility & contrast

On white

5.67
#B21BB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#B21BB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21BB3
5.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21BB3#FFFFFF#000000##FFFFFF
##B21BB31.005.673.705.67
#FFFFFF5.671.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.671.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: #b21bb3;
/* rgb */ color: rgb(178, 27, 179);
/* oklch */ color: oklch(54.5% 0.236 327.9);
Tailwind
colors: {
  custom: {
    50: '#cd6fca',
    500: '#b21bb3',
    950: '#000000',
  },
}
SCSS
$custom: #b21bb3;
$custom-light: #cd6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b21bb3",
  "rgb": {
    "r": 178,
    "g": 27,
    "b": 179
  },
  "hsl": {
    "h": 299.605,
    "s": 73.786,
    "l": 40.392
  },
  "oklch": {
    "l": 0.54467,
    "c": 0.23577,
    "h": 327.9
  },
  "luminance": 0.13504
}

Semantic roles & 50–950 ramp

primary
#B21BB3
secondary
#5FCC5E
accent
#F03739
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B21BB3

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

Preview Lab → · Contrast checker → · Palette generator →

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