#B22DDC#B22DDC

#B22DDC is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.2% C 0.253 H 316.2°. Best body text is #FFFFFF at 4.88:1 contrast (WCAG AA passes).

Color values

HEX#B22DDC
RGBrgb(178, 45, 220)
HSLhsl(286, 71%, 52%)
HSVhsv(286, 80%, 86%)
CMYKcmyk(19.1%, 79.5%, 0%, 13.7%)
CIE-LABlab(47.64, 74.31, -62.22)
CIE-LCHlch(47.64, 96.92, 320.06°)
OKLaboklab(58.2% 0.1828 -0.1756)
OKLCHoklch(58.2% 0.253 316.2)
XYZxyz(32.2147, 16.5104, 69.1862)
Luminance0.1651 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22DDC #57DC2D
analogous
#5B2DDC #B22DDC #DC2DAF
triadic
#B22DDC #DCB22D #2DDCB2
tetradic
#B22DDC #DC5B2D #57DC2D #2DAFDC
square
#B22DDC #DC5B2D #57DC2D #2DAFDC
split-complementary
#B22DDC #AFDC2D #2DDC5B
monochromatic
#62147A #8C1DAF #B22DDC #C561E5 #D896ED

Accessibility & contrast

On white

4.88
#B22DDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.30
#B22DDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22DDC
4.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22DDC#FFFFFF#000000##FFFFFF
##B22DDC1.004.884.304.88
#FFFFFF4.881.0021.001.00
#0000004.3021.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069E1
Deuteranopia (green-blind)
#2A75D8
Tritanopia (blue-blind)
#AF5786
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b22ddc;
/* rgb */ color: rgb(178, 45, 220);
/* oklch */ color: oklch(58.2% 0.253 316.2);
Tailwind
colors: {
  custom: {
    50: '#ce76e8',
    500: '#b22ddc',
    950: '#000000',
  },
}
SCSS
$custom: #b22ddc;
$custom-light: #ce76e8;
$custom-dark: #000000;
JSON
{
  "hex": "#b22ddc",
  "rgb": {
    "r": 178,
    "g": 45,
    "b": 220
  },
  "hsl": {
    "h": 285.6,
    "s": 71.429,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58203,
    "c": 0.25345,
    "h": 316.2
  },
  "luminance": 0.16509
}

Semantic roles & 50–950 ramp

primary
#B22DDC
secondary
#9ED98C
accent
#EE3A65
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B22DDC

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

Preview Lab → · Contrast checker → · Palette generator →

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