#B21BB4#B21BB4

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

Color values

HEX#B21BB4
RGBrgb(178, 27, 180)
HSLhsl(299, 74%, 41%)
HSVhsv(299, 85%, 71%)
CMYKcmyk(1.1%, 85%, 0%, 29.4%)
CIE-LABlab(43.58, 71.85, -45.55)
CIE-LCHlch(43.58, 85.08, 327.63°)
OKLaboklab(54.53% 0.1997 -0.1267)
OKLCHoklch(54.53% 0.236 327.6)
XYZxyz(26.9899, 13.5462, 44.3643)
Luminance0.1354 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21BB4 #1DB41B
analogous
#661BB4 #B21BB4 #B41B69
triadic
#B21BB4 #B4B21B #1BB4B2
tetradic
#B21BB4 #B4661B #1DB41B #1B69B4
square
#B21BB4 #B4661B #1DB41B #1B69B4
split-complementary
#B21BB4 #69B41B #1BB466
monochromatic
#490B4A #7D137F #B21BB4 #DD2DDF #E662E7

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##B21BB4#FFFFFF#000000##FFFFFF
##B21BB41.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)
#005BB8
Deuteranopia (green-blind)
#4A6DB1
Tritanopia (blue-blind)
#B83A6B
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b21bb4;
/* rgb */ color: rgb(178, 27, 180);
/* oklch */ color: oklch(54.5% 0.236 327.6);
Tailwind
colors: {
  custom: {
    50: '#cd6fcb',
    500: '#b21bb4',
    950: '#000000',
  },
}
SCSS
$custom: #b21bb4;
$custom-light: #cd6fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#b21bb4",
  "rgb": {
    "r": 178,
    "g": 27,
    "b": 180
  },
  "hsl": {
    "h": 299.216,
    "s": 73.913,
    "l": 40.588
  },
  "oklch": {
    "l": 0.54528,
    "c": 0.23647,
    "h": 327.6
  },
  "luminance": 0.13544
}

Semantic roles & 50–950 ramp

primary
#B21BB4
secondary
#60CC5F
accent
#F1373A
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B21BB4

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

Preview Lab → · Contrast checker → · Palette generator →

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