#B21EB4#B21EB4

#B21EB4 is a mid, highly saturated purple. Relative luminance 0.137; OKLCH L 54.7% C 0.234 H 327.6°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#B21EB4
RGBrgb(178, 30, 180)
HSLhsl(299, 71%, 41%)
HSVhsv(299, 83%, 71%)
CMYKcmyk(1.1%, 83.3%, 0%, 29.4%)
CIE-LABlab(43.79, 71.24, -45.22)
CIE-LCHlch(43.79, 84.38, 327.59°)
OKLaboklab(54.68% 0.1979 -0.1257)
OKLCHoklch(54.68% 0.234 327.6)
XYZxyz(27.0622, 13.6909, 44.3884)
Luminance0.1369 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B21EB4 #20B41E
analogous
#671EB4 #B21EB4 #B41E6B
triadic
#B21EB4 #B4B21E #1EB4B2
tetradic
#B21EB4 #B4671E #20B41E #1E6BB4
square
#B21EB4 #B4671E #20B41E #1E6BB4
split-complementary
#B21EB4 #6BB41E #1EB467
monochromatic
#4A0D4B #7E1580 #B21EB4 #DB32DD #E467E6

Accessibility & contrast

On white

5.62
#B21EB4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#B21EB4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B21EB4
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B21EB4#FFFFFF#000000##FFFFFF
##B21EB41.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CB8
Deuteranopia (green-blind)
#4B6EB1
Tritanopia (blue-blind)
#B73C6C
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #b21eb4;
/* rgb */ color: rgb(178, 30, 180);
/* oklch */ color: oklch(54.7% 0.234 327.6);
Tailwind
colors: {
  custom: {
    50: '#cd70cb',
    500: '#b21eb4',
    950: '#000000',
  },
}
SCSS
$custom: #b21eb4;
$custom-light: #cd70cb;
$custom-dark: #000000;
JSON
{
  "hex": "#b21eb4",
  "rgb": {
    "r": 178,
    "g": 30,
    "b": 180
  },
  "hsl": {
    "h": 299.2,
    "s": 71.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.54678,
    "c": 0.23448,
    "h": 327.6
  },
  "luminance": 0.13689
}

Semantic roles & 50–950 ramp

primary
#B21EB4
secondary
#64CB63
accent
#EE3A3C
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B21EB4

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

Preview Lab → · Contrast checker → · Palette generator →

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