#B021A8#B021A8

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

Color values

HEX#B021A8
RGBrgb(176, 33, 168)
HSLhsl(303, 68%, 41%)
HSVhsv(303, 81%, 69%)
CMYKcmyk(0%, 81.3%, 4.5%, 31%)
CIE-LABlab(42.98, 68.31, -39.40)
CIE-LCHlch(42.98, 78.86, 330.02°)
OKLaboklab(53.82% 0.1945 -0.1088)
OKLCHoklch(53.82% 0.223 330.8)
XYZxyz(25.5162, 13.1471, 38.2320)
Luminance0.1315 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B021A8 #21B029
analogous
#7021B0 #B021A8 #B02160
triadic
#B021A8 #A8B021 #21A8B0
tetradic
#B021A8 #B07021 #21B029 #2160B0
square
#B021A8 #B07021 #21B029 #2160B0
split-complementary
#B021A8 #60B021 #21B070
monochromatic
#490E46 #7C1777 #B021A8 #D935D0 #E369DC

Accessibility & contrast

On white

5.79
#B021A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.63
#B021A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B021A8
5.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B021A8#FFFFFF#000000##FFFFFF
##B021A81.005.793.635.79
#FFFFFF5.791.0021.001.00
#0000003.6321.001.0021.00
##FFFFFF5.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0659AB
Deuteranopia (green-blind)
#516CA5
Tritanopia (blue-blind)
#B73766
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #b021a8;
/* rgb */ color: rgb(176, 33, 168);
/* oklch */ color: oklch(53.8% 0.223 330.8);
Tailwind
colors: {
  custom: {
    50: '#cc70c2',
    500: '#b021a8',
    950: '#000000',
  },
}
SCSS
$custom: #b021a8;
$custom-light: #cc70c2;
$custom-dark: #000000;
JSON
{
  "hex": "#b021a8",
  "rgb": {
    "r": 176,
    "g": 33,
    "b": 168
  },
  "hsl": {
    "h": 303.357,
    "s": 68.421,
    "l": 40.98
  },
  "oklch": {
    "l": 0.53822,
    "c": 0.22286,
    "h": 330.8
  },
  "luminance": 0.13145
}

Semantic roles & 50–950 ramp

primary
#B021A8
secondary
#64C86A
accent
#EB463D
background
#FDF7FC
surface
#FAEDF8
border
#D3C8D1
text
#140912
muted
#837B81

Preview Lab

Preview with #B021A8

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

Preview Lab → · Contrast checker → · Palette generator →

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