#B22DCC#B22DCC

#B22DCC is a mid, highly saturated purple. Relative luminance 0.157; OKLCH L 57.1% C 0.241 H 320.3°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#B22DCC
RGBrgb(178, 45, 204)
HSLhsl(290, 64%, 49%)
HSVhsv(290, 78%, 80%)
CMYKcmyk(12.7%, 77.9%, 0%, 20%)
CIE-LABlab(46.58, 71.42, -54.74)
CIE-LCHlch(46.58, 89.99, 322.53°)
OKLaboklab(57.13% 0.1852 -0.1536)
OKLCHoklch(57.13% 0.241 320.3)
XYZxyz(30.1962, 15.7030, 58.5555)
Luminance0.1570 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DCC #47CC2D
analogous
#632DCC #B22DCC #CC2D97
triadic
#B22DCC #CCB22D #2DCCB2
tetradic
#B22DCC #CC632D #47CC2D #2D97CC
square
#B22DCC #CC632D #47CC2D #2D97CC
split-complementary
#B22DCC #97CC2D #2DCC63
monochromatic
#5B1768 #86229A #B22DCC #C65BDB #D78DE6

Accessibility & contrast

On white

5.07
#B22DCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#B22DCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DCC
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DCC#FFFFFF#000000##FFFFFF
##B22DCC1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D0
Deuteranopia (green-blind)
#3E73C9
Tritanopia (blue-blind)
#B34F7D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #b22dcc;
/* rgb */ color: rgb(178, 45, 204);
/* oklch */ color: oklch(57.1% 0.241 320.3);
Tailwind
colors: {
  custom: {
    50: '#cd76dc',
    500: '#b22dcc',
    950: '#000000',
  },
}
SCSS
$custom: #b22dcc;
$custom-light: #cd76dc;
$custom-dark: #000000;
JSON
{
  "hex": "#b22dcc",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 290.189,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.57126,
    "c": 0.2406,
    "h": 320.3
  },
  "luminance": 0.15701
}

Semantic roles & 50–950 ramp

primary
#B22DCC
secondary
#91D085
accent
#E7415C
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B22DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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