#B021AB#B021AB

#B021AB is a mid, highly saturated purple. Relative luminance 0.133; OKLCH L 54.0% C 0.225 H 329.8°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#B021AB
RGBrgb(176, 33, 171)
HSLhsl(302, 68%, 41%)
HSVhsv(302, 81%, 69%)
CMYKcmyk(0%, 81.3%, 2.8%, 31%)
CIE-LABlab(43.15, 68.77, -40.92)
CIE-LCHlch(43.15, 80.02, 329.25°)
OKLaboklab(54% 0.1944 -0.1132)
OKLCHoklch(54% 0.225 329.8)
XYZxyz(25.7989, 13.2602, 39.7209)
Luminance0.1326 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B021AB #21B026
analogous
#6D21B0 #B021AB #B02163
triadic
#B021AB #ABB021 #21ABB0
tetradic
#B021AB #B06D21 #21B026 #2163B0
square
#B021AB #B06D21 #21B026 #2163B0
split-complementary
#B021AB #63B021 #21B06D
monochromatic
#490E47 #7C1779 #B021AB #D935D3 #E369DF

Accessibility & contrast

On white

5.75
#B021AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#B021AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B021AB
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B021AB#FFFFFF#000000##FFFFFF
##B021AB1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005AAF
Deuteranopia (green-blind)
#506CA8
Tritanopia (blue-blind)
#B73867
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b021ab;
/* rgb */ color: rgb(176, 33, 171);
/* oklch */ color: oklch(54.0% 0.225 329.8);
Tailwind
colors: {
  custom: {
    50: '#cc70c4',
    500: '#b021ab',
    950: '#000000',
  },
}
SCSS
$custom: #b021ab;
$custom-light: #cc70c4;
$custom-dark: #000000;
JSON
{
  "hex": "#b021ab",
  "rgb": {
    "r": 176,
    "g": 33,
    "b": 171
  },
  "hsl": {
    "h": 302.098,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53996,
    "c": 0.22498,
    "h": 329.8
  },
  "luminance": 0.13258
}

Semantic roles & 50–950 ramp

primary
#B021AB
secondary
#64C868
accent
#EB433D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140913
muted
#837B82

Preview Lab

Preview with #B021AB

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

Preview Lab → · Contrast checker → · Palette generator →

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