#B22EDB#B22EDB

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

Color values

HEX#B22EDB
RGBrgb(178, 46, 219)
HSLhsl(286, 71%, 52%)
HSVhsv(286, 79%, 86%)
CMYKcmyk(18.7%, 79%, 0%, 14.1%)
CIE-LABlab(47.67, 73.84, -61.60)
CIE-LCHlch(47.67, 96.16, 320.16°)
OKLaboklab(58.2% 0.1822 -0.1737)
OKLCHoklch(58.2% 0.252 316.4)
XYZxyz(32.1213, 16.5348, 68.5036)
Luminance0.1653 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22EDB #57DB2E
analogous
#5B2EDB #B22EDB #DB2EAE
triadic
#B22EDB #DBB22E #2EDBB2
tetradic
#B22EDB #DB5B2E #57DB2E #2EAEDB
square
#B22EDB #DB5B2E #57DB2E #2EAEDB
split-complementary
#B22EDB #AEDB2E #2EDB5B
monochromatic
#62157A #8C1EAE #B22EDB #C562E4 #D896ED

Accessibility & contrast

On white

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

On black

4.31
#B22EDB on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##B22EDB#FFFFFF#000000##FFFFFF
##B22EDB1.004.884.314.88
#FFFFFF4.881.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE0
Deuteranopia (green-blind)
#2C75D7
Tritanopia (blue-blind)
#AF5785
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b22edb;
/* rgb */ color: rgb(178, 46, 219);
/* oklch */ color: oklch(58.2% 0.252 316.4);
Tailwind
colors: {
  custom: {
    50: '#ce77e7',
    500: '#b22edb',
    950: '#000000',
  },
}
SCSS
$custom: #b22edb;
$custom-light: #ce77e7;
$custom-dark: #000000;
JSON
{
  "hex": "#b22edb",
  "rgb": {
    "r": 178,
    "g": 46,
    "b": 219
  },
  "hsl": {
    "h": 285.78,
    "s": 70.612,
    "l": 51.961
  },
  "oklch": {
    "l": 0.58204,
    "c": 0.25179,
    "h": 316.4
  },
  "luminance": 0.16533
}

Semantic roles & 50–950 ramp

primary
#B22EDB
secondary
#9ED88D
accent
#ED3A65
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B22EDB

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

Preview Lab → · Contrast checker → · Palette generator →

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