#B021A9#B021A9

#B021A9 is a mid, highly saturated purple. Relative luminance 0.132; OKLCH L 53.9% C 0.224 H 330.4°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#B021A9
RGBrgb(176, 33, 169)
HSLhsl(303, 68%, 41%)
HSVhsv(303, 81%, 69%)
CMYKcmyk(0%, 81.3%, 4%, 31%)
CIE-LABlab(43.04, 68.46, -39.91)
CIE-LCHlch(43.04, 79.24, 329.76°)
OKLaboklab(53.88% 0.1945 -0.1103)
OKLCHoklch(53.88% 0.224 330.4)
XYZxyz(25.6097, 13.1845, 38.7245)
Luminance0.1318 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B021A9 #21B028
analogous
#6F21B0 #B021A9 #B02161
triadic
#B021A9 #A9B021 #21A9B0
tetradic
#B021A9 #B06F21 #21B028 #2161B0
square
#B021A9 #B06F21 #21B028 #2161B0
split-complementary
#B021A9 #61B021 #21B06F
monochromatic
#490E46 #7C1778 #B021A9 #D935D1 #E369DD

Accessibility & contrast

On white

5.77
#B021A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#B021A9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B021A9
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B021A9#FFFFFF#000000##FFFFFF
##B021A91.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0359AC
Deuteranopia (green-blind)
#516CA6
Tritanopia (blue-blind)
#B73766
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #b021a9;
/* rgb */ color: rgb(176, 33, 169);
/* oklch */ color: oklch(53.9% 0.224 330.4);
Tailwind
colors: {
  custom: {
    50: '#cc70c3',
    500: '#b021a9',
    950: '#000000',
  },
}
SCSS
$custom: #b021a9;
$custom-light: #cc70c3;
$custom-dark: #000000;
JSON
{
  "hex": "#b021a9",
  "rgb": {
    "r": 176,
    "g": 33,
    "b": 169
  },
  "hsl": {
    "h": 302.937,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53879,
    "c": 0.22356,
    "h": 330.4
  },
  "luminance": 0.13182
}

Semantic roles & 50–950 ramp

primary
#B021A9
secondary
#64C869
accent
#EB453D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B021A9

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

Preview Lab → · Contrast checker → · Palette generator →

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