#B421A1#B421A1

#B421A1 is a mid, highly saturated purple. Relative luminance 0.134; OKLCH L 54.1% C 0.220 H 334.4°. Best body text is #FFFFFF at 5.72:1 contrast (WCAG AA passes).

Color values

HEX#B421A1
RGBrgb(180, 33, 161)
HSLhsl(308, 69%, 42%)
HSVhsv(308, 82%, 71%)
CMYKcmyk(0%, 81.7%, 10.6%, 29.4%)
CIE-LABlab(43.31, 68.09, -34.66)
CIE-LCHlch(43.31, 76.40, 333.02°)
OKLaboklab(54.06% 0.1983 -0.095)
OKLCHoklch(54.06% 0.22 334.4)
XYZxyz(25.7996, 13.3666, 34.9325)
Luminance0.1336 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B421A1 #21B434
analogous
#7E21B4 #B421A1 #B42158
triadic
#B421A1 #A1B421 #21A1B4
tetradic
#B421A1 #B47E21 #21B434 #2158B4
square
#B421A1 #B47E21 #21B434 #2158B4
split-complementary
#B421A1 #58B421 #21B47E
monochromatic
#4D0E44 #801873 #B421A1 #DA38C5 #E46BD4

Accessibility & contrast

On white

5.72
#B421A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#B421A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B421A1
5.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B421A1#FFFFFF#000000##FFFFFF
##B421A11.005.723.675.72
#FFFFFF5.721.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D59A4
Deuteranopia (green-blind)
#596E9E
Tritanopia (blue-blind)
#BD3162
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b421a1;
/* rgb */ color: rgb(180, 33, 161);
/* oklch */ color: oklch(54.1% 0.220 334.4);
Tailwind
colors: {
  custom: {
    50: '#cf70bd',
    500: '#b421a1',
    950: '#000000',
  },
}
SCSS
$custom: #b421a1;
$custom-light: #cf70bd;
$custom-dark: #000000;
JSON
{
  "hex": "#b421a1",
  "rgb": {
    "r": 180,
    "g": 33,
    "b": 161
  },
  "hsl": {
    "h": 307.755,
    "s": 69.014,
    "l": 41.765
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.21991,
    "h": 334.4
  },
  "luminance": 0.13364
}

Semantic roles & 50–950 ramp

primary
#B421A1
secondary
#67CA74
accent
#EC533C
background
#FDF7FB
surface
#FAEDF6
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B421A1

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

Preview Lab → · Contrast checker → · Palette generator →

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