#B021A5#B021A5

#B021A5 is a mid, highly saturated purple. Relative luminance 0.130; OKLCH L 53.6% C 0.221 H 331.8°. Best body text is #FFFFFF at 5.82:1 contrast (WCAG AA passes).

Color values

HEX#B021A5
RGBrgb(176, 33, 165)
HSLhsl(305, 68%, 41%)
HSVhsv(305, 81%, 69%)
CMYKcmyk(0%, 81.3%, 6.2%, 31%)
CIE-LABlab(42.82, 67.85, -37.87)
CIE-LCHlch(42.82, 77.71, 330.83°)
OKLaboklab(53.65% 0.1945 -0.1044)
OKLCHoklch(53.65% 0.221 331.8)
XYZxyz(25.2399, 13.0366, 36.7770)
Luminance0.1303 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B021A5 #21B02C
analogous
#7321B0 #B021A5 #B0215E
triadic
#B021A5 #A5B021 #21A5B0
tetradic
#B021A5 #B07321 #21B02C #215EB0
square
#B021A5 #B07321 #21B02C #215EB0
split-complementary
#B021A5 #5EB021 #21B073
monochromatic
#490E44 #7C1775 #B021A5 #D935CD #E369D9

Accessibility & contrast

On white

5.82
#B021A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#B021A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B021A5
5.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B021A5#FFFFFF#000000##FFFFFF
##B021A51.005.823.615.82
#FFFFFF5.821.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1059A8
Deuteranopia (green-blind)
#536CA2
Tritanopia (blue-blind)
#B83564
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b021a5;
/* rgb */ color: rgb(176, 33, 165);
/* oklch */ color: oklch(53.6% 0.221 331.8);
Tailwind
colors: {
  custom: {
    50: '#cc70c0',
    500: '#b021a5',
    950: '#000000',
  },
}
SCSS
$custom: #b021a5;
$custom-light: #cc70c0;
$custom-dark: #000000;
JSON
{
  "hex": "#b021a5",
  "rgb": {
    "r": 176,
    "g": 33,
    "b": 165
  },
  "hsl": {
    "h": 304.615,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.5365,
    "c": 0.22074,
    "h": 331.8
  },
  "luminance": 0.13034
}

Semantic roles & 50–950 ramp

primary
#B021A5
secondary
#64C86C
accent
#EB4A3D
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B021A5

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

Preview Lab → · Contrast checker → · Palette generator →

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