#B021A7#B021A7

#B021A7 is a mid, highly saturated purple. Relative luminance 0.131; OKLCH L 53.8% C 0.222 H 331.1°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#B021A7
RGBrgb(176, 33, 167)
HSLhsl(304, 68%, 41%)
HSVhsv(304, 81%, 69%)
CMYKcmyk(0%, 81.3%, 5.1%, 31%)
CIE-LABlab(42.93, 68.16, -38.89)
CIE-LCHlch(42.93, 78.47, 330.29°)
OKLaboklab(53.76% 0.1945 -0.1074)
OKLCHoklch(53.76% 0.222 331.1)
XYZxyz(25.4234, 13.1100, 37.7432)
Luminance0.1311 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B021A7 #21B02A
analogous
#7121B0 #B021A7 #B0215F
triadic
#B021A7 #A7B021 #21A7B0
tetradic
#B021A7 #B07121 #21B02A #215FB0
square
#B021A7 #B07121 #21B02A #215FB0
split-complementary
#B021A7 #5FB021 #21B071
monochromatic
#490E45 #7C1776 #B021A7 #D935CF #E369DB

Accessibility & contrast

On white

5.80
#B021A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#B021A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B021A7
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B021A7#FFFFFF#000000##FFFFFF
##B021A71.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A59AA
Deuteranopia (green-blind)
#526CA4
Tritanopia (blue-blind)
#B73665
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b021a7;
/* rgb */ color: rgb(176, 33, 167);
/* oklch */ color: oklch(53.8% 0.222 331.1);
Tailwind
colors: {
  custom: {
    50: '#cc70c1',
    500: '#b021a7',
    950: '#000000',
  },
}
SCSS
$custom: #b021a7;
$custom-light: #cc70c1;
$custom-dark: #000000;
JSON
{
  "hex": "#b021a7",
  "rgb": {
    "r": 176,
    "g": 33,
    "b": 167
  },
  "hsl": {
    "h": 303.776,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53764,
    "c": 0.22215,
    "h": 331.1
  },
  "luminance": 0.13108
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #B021A7

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

Preview Lab → · Contrast checker → · Palette generator →

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