#B421BA#B421BA

#B421BA is a mid, highly saturated purple. Relative luminance 0.143; OKLCH L 55.5% C 0.237 H 326.4°. Best body text is #FFFFFF at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#B421BA
RGBrgb(180, 33, 186)
HSLhsl(298, 70%, 43%)
HSVhsv(298, 82%, 73%)
CMYKcmyk(3.2%, 82.3%, 0%, 27.1%)
CIE-LABlab(44.71, 71.90, -47.24)
CIE-LCHlch(44.71, 86.03, 326.69°)
OKLaboklab(55.51% 0.1977 -0.1316)
OKLCHoklch(55.51% 0.238 326.4)
XYZxyz(28.2286, 14.3382, 47.7256)
Luminance0.1434 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B421BA #27BA21
analogous
#6721BA #B421BA #BA2173
triadic
#B421BA #BAB421 #21BAB4
tetradic
#B421BA #BA6721 #27BA21 #2173BA
square
#B421BA #BA6721 #27BA21 #2173BA
split-complementary
#B421BA #73BA21 #21BA67
monochromatic
#4F0F52 #821886 #B421BA #D63CDC #E170E6

Accessibility & contrast

On white

5.43
#B421BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.87
#B421BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B421BA
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B421BA#FFFFFF#000000##FFFFFF
##B421BA1.005.433.875.43
#FFFFFF5.431.0021.001.00
#0000003.8721.001.0021.00
##FFFFFF5.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EBE
Deuteranopia (green-blind)
#4A70B7
Tritanopia (blue-blind)
#B94070
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #b421ba;
/* rgb */ color: rgb(180, 33, 186);
/* oklch */ color: oklch(55.5% 0.237 326.4);
Tailwind
colors: {
  custom: {
    50: '#cf71cf',
    500: '#b421ba',
    950: '#000000',
  },
}
SCSS
$custom: #b421ba;
$custom-light: #cf71cf;
$custom-dark: #000000;
JSON
{
  "hex": "#b421ba",
  "rgb": {
    "r": 180,
    "g": 33,
    "b": 186
  },
  "hsl": {
    "h": 297.647,
    "s": 69.863,
    "l": 42.941
  },
  "oklch": {
    "l": 0.55513,
    "c": 0.2375,
    "h": 326.4
  },
  "luminance": 0.14336
}

Semantic roles & 50–950 ramp

primary
#B421BA
secondary
#6FCC6B
accent
#ED3B42
background
#FDF7FC
surface
#FAEDF9
border
#D3C8D2
text
#140914
muted
#837B82

Preview Lab

Preview with #B421BA

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

Preview Lab → · Contrast checker → · Palette generator →

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