#B22DCD#B22DCD

#B22DCD is a mid, highly saturated purple. Relative luminance 0.158; OKLCH L 57.2% C 0.241 H 320.0°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#B22DCD
RGBrgb(178, 45, 205)
HSLhsl(290, 64%, 49%)
HSVhsv(290, 78%, 80%)
CMYKcmyk(13.2%, 78%, 0%, 19.6%)
CIE-LABlab(46.65, 71.60, -55.22)
CIE-LCHlch(46.65, 90.42, 322.36°)
OKLaboklab(57.19% 0.1851 -0.155)
OKLCHoklch(57.19% 0.241 320)
XYZxyz(30.3166, 15.7511, 59.1892)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DCD #48CD2D
analogous
#622DCD #B22DCD #CD2D98
triadic
#B22DCD #CDB22D #2DCDB2
tetradic
#B22DCD #CD622D #48CD2D #2D98CD
square
#B22DCD #CD622D #48CD2D #2D98CD
split-complementary
#B22DCD #98CD2D #2DCD62
monochromatic
#5B1769 #86229B #B22DCD #C65CDB #D78EE6

Accessibility & contrast

On white

5.06
#B22DCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#B22DCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DCD
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DCD#FFFFFF#000000##FFFFFF
##B22DCD1.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D1
Deuteranopia (green-blind)
#3D73CA
Tritanopia (blue-blind)
#B2507D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #b22dcd;
/* rgb */ color: rgb(178, 45, 205);
/* oklch */ color: oklch(57.2% 0.241 320.0);
Tailwind
colors: {
  custom: {
    50: '#cd76dd',
    500: '#b22dcd',
    950: '#000000',
  },
}
SCSS
$custom: #b22dcd;
$custom-light: #cd76dd;
$custom-dark: #000000;
JSON
{
  "hex": "#b22dcd",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 205
  },
  "hsl": {
    "h": 289.875,
    "s": 64,
    "l": 49.02
  },
  "oklch": {
    "l": 0.57191,
    "c": 0.2414,
    "h": 320
  },
  "luminance": 0.1575
}

Semantic roles & 50–950 ramp

primary
#B22DCD
secondary
#92D185
accent
#E7415D
background
#FDF7FD
surface
#FAEEFB
border
#D3C9D4
text
#140A15
muted
#837C83

Preview Lab

Preview with #B22DCD

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

Preview Lab → · Contrast checker → · Palette generator →

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