#B21AB3#B21AB3

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

Color values

HEX#B21AB3
RGBrgb(178, 26, 179)
HSLhsl(300, 75%, 40%)
HSVhsv(300, 85%, 70%)
CMYKcmyk(0.6%, 85.5%, 0%, 29.8%)
CIE-LABlab(43.45, 71.89, -45.17)
CIE-LCHlch(43.45, 84.90, 327.86°)
OKLaboklab(54.42% 0.2003 -0.1255)
OKLCHoklch(54.42% 0.236 327.9)
XYZxyz(26.8658, 13.4605, 43.8222)
Luminance0.1346 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21AB3 #1BB31A
analogous
#661AB3 #B21AB3 #B31A67
triadic
#B21AB3 #B3B21A #1AB3B2
tetradic
#B21AB3 #B3661A #1BB31A #1A67B3
square
#B21AB3 #B3661A #1BB31A #1A67B3
split-complementary
#B21AB3 #67B31A #1AB366
monochromatic
#480A48 #7D127E #B21AB3 #DF2AE0 #E760E8

Accessibility & contrast

On white

5.69
#B21AB3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#B21AB3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21AB3
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21AB3#FFFFFF#000000##FFFFFF
##B21AB31.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #b21ab3;
/* rgb */ color: rgb(178, 26, 179);
/* oklch */ color: oklch(54.4% 0.236 327.9);
Tailwind
colors: {
  custom: {
    50: '#cd6fca',
    500: '#b21ab3',
    950: '#000000',
  },
}
SCSS
$custom: #b21ab3;
$custom-light: #cd6fca;
$custom-dark: #000000;
JSON
{
  "hex": "#b21ab3",
  "rgb": {
    "r": 178,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 299.608,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.54421,
    "c": 0.2364,
    "h": 327.9
  },
  "luminance": 0.13458
}

Semantic roles & 50–950 ramp

primary
#B21AB3
secondary
#5DCC5D
accent
#F13738
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B21AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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