#B21AAB#B21AAB

#B21AAB is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.9% C 0.231 H 330.4°. Best body text is #FFFFFF at 5.79:1 contrast (WCAG AA passes).

Color values

HEX#B21AAB
RGBrgb(178, 26, 171)
HSLhsl(303, 75%, 40%)
HSVhsv(303, 85%, 70%)
CMYKcmyk(0%, 85.4%, 3.9%, 30.2%)
CIE-LABlab(42.98, 70.67, -41.17)
CIE-LCHlch(42.98, 81.79, 329.78°)
OKLaboklab(53.94% 0.2008 -0.1139)
OKLCHoklch(53.94% 0.231 330.4)
XYZxyz(26.0801, 13.1462, 39.6841)
Luminance0.1314 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21AAB #1AB221
analogous
#6D1AB2 #B21AAB #B21A5F
triadic
#B21AAB #ABB21A #1AABB2
tetradic
#B21AAB #B26D1A #1AB221 #1A5FB2
square
#B21AAB #B26D1A #1AB221 #1A5FB2
split-complementary
#B21AAB #5FB21A #1AB26D
monochromatic
#470A44 #7D1278 #B21AAB #E029D7 #E85FE1

Accessibility & contrast

On white

5.79
#B21AAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B21AAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21AAB
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21AAB#FFFFFF#000000##FFFFFF
##B21AAB1.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059AF
Deuteranopia (green-blind)
#506CA8
Tritanopia (blue-blind)
#B93466
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b21aab;
/* rgb */ color: rgb(178, 26, 171);
/* oklch */ color: oklch(53.9% 0.231 330.4);
Tailwind
colors: {
  custom: {
    50: '#cd6ec4',
    500: '#b21aab',
    950: '#000000',
  },
}
SCSS
$custom: #b21aab;
$custom-light: #cd6ec4;
$custom-dark: #000000;
JSON
{
  "hex": "#b21aab",
  "rgb": {
    "r": 178,
    "g": 26,
    "b": 171
  },
  "hsl": {
    "h": 302.763,
    "s": 74.51,
    "l": 40
  },
  "oklch": {
    "l": 0.53941,
    "c": 0.23081,
    "h": 330.4
  },
  "luminance": 0.13144
}

Semantic roles & 50–950 ramp

primary
#B21AAB
secondary
#5CCC61
accent
#F13F37
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140813
muted
#837B82

Preview Lab

Preview with #B21AAB

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

Preview Lab → · Contrast checker → · Palette generator →

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