#B021A6#B021A6

#B021A6 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.7% C 0.221 H 331.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#B021A6
RGBrgb(176, 33, 166)
HSLhsl(304, 68%, 41%)
HSVhsv(304, 81%, 69%)
CMYKcmyk(0%, 81.3%, 5.7%, 31%)
CIE-LABlab(42.87, 68.00, -38.38)
CIE-LCHlch(42.87, 78.09, 330.56°)
OKLaboklab(53.71% 0.1945 -0.1059)
OKLCHoklch(53.71% 0.221 331.4)
XYZxyz(25.3313, 13.0731, 37.2582)
Luminance0.1307 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B021A6 #21B02B
analogous
#7221B0 #B021A6 #B0215E
triadic
#B021A6 #A6B021 #21A6B0
tetradic
#B021A6 #B07221 #21B02B #215EB0
square
#B021A6 #B07221 #21B02B #215EB0
split-complementary
#B021A6 #5EB021 #21B072
monochromatic
#490E45 #7C1775 #B021A6 #D935CE #E369DA

Accessibility & contrast

On white

5.81
#B021A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #B021A6
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B021A6#FFFFFF#000000##FFFFFF
##B021A61.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D59A9
Deuteranopia (green-blind)
#536CA3
Tritanopia (blue-blind)
#B73664
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b021a6;
/* rgb */ color: rgb(176, 33, 166);
/* oklch */ color: oklch(53.7% 0.221 331.4);
Tailwind
colors: {
  custom: {
    50: '#cc70c1',
    500: '#b021a6',
    950: '#000000',
  },
}
SCSS
$custom: #b021a6;
$custom-light: #cc70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b021a6",
  "rgb": {
    "r": 176,
    "g": 33,
    "b": 166
  },
  "hsl": {
    "h": 304.196,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53707,
    "c": 0.22145,
    "h": 331.4
  },
  "luminance": 0.13071
}

Semantic roles & 50–950 ramp

primary
#B021A6
secondary
#64C86B
accent
#EB493D
background
#FDF7FB
surface
#FAEDF7
border
#D3C8D0
text
#140912
muted
#837B81

Preview Lab

Preview with #B021A6

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

Preview Lab → · Contrast checker → · Palette generator →

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