#B021AC#B021AC

#B021AC is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.1% C 0.226 H 329.5°. Best body text is #FFFFFF at 5.74:1 contrast (WCAG AA passes).

Color values

HEX#B021AC
RGBrgb(176, 33, 172)
HSLhsl(302, 68%, 41%)
HSVhsv(302, 81%, 69%)
CMYKcmyk(0%, 81.3%, 2.3%, 31%)
CIE-LABlab(43.21, 68.92, -41.42)
CIE-LCHlch(43.21, 80.41, 328.99°)
OKLaboklab(54.06% 0.1944 -0.1147)
OKLCHoklch(54.06% 0.226 329.5)
XYZxyz(25.8946, 13.2984, 40.2248)
Luminance0.1330 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B021AC #21B025
analogous
#6C21B0 #B021AC #B02164
triadic
#B021AC #ACB021 #21ACB0
tetradic
#B021AC #B06C21 #21B025 #2164B0
square
#B021AC #B06C21 #21B025 #2164B0
split-complementary
#B021AC #64B021 #21B06C
monochromatic
#490E47 #7C177A #B021AC #D935D5 #E369DF

Accessibility & contrast

On white

5.74
#B021AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.66
#B021AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B021AC
5.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B021AC#FFFFFF#000000##FFFFFF
##B021AC1.005.743.665.74
#FFFFFF5.741.0021.001.00
#0000003.6621.001.0021.00
##FFFFFF5.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AB0
Deuteranopia (green-blind)
#4F6CA9
Tritanopia (blue-blind)
#B63968
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b021ac;
/* rgb */ color: rgb(176, 33, 172);
/* oklch */ color: oklch(54.1% 0.226 329.5);
Tailwind
colors: {
  custom: {
    50: '#cc70c5',
    500: '#b021ac',
    950: '#000000',
  },
}
SCSS
$custom: #b021ac;
$custom-light: #cc70c5;
$custom-dark: #000000;
JSON
{
  "hex": "#b021ac",
  "rgb": {
    "r": 176,
    "g": 33,
    "b": 172
  },
  "hsl": {
    "h": 301.678,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.54055,
    "c": 0.22569,
    "h": 329.5
  },
  "luminance": 0.13296
}

Semantic roles & 50–950 ramp

primary
#B021AC
secondary
#64C867
accent
#EB413D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B021AC

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

Preview Lab → · Contrast checker → · Palette generator →

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