#B22FE2#B22FE2

#B22FE2 is a mid, highly saturated purple. Relative luminance 0.170; OKLCH L 58.8% C 0.257 H 314.6°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#B22FE2
RGBrgb(178, 47, 226)
HSLhsl(284, 76%, 54%)
HSVhsv(284, 79%, 89%)
CMYKcmyk(21.2%, 79.2%, 0%, 11.4%)
CIE-LABlab(48.25, 74.85, -64.65)
CIE-LCHlch(48.25, 98.91, 319.18°)
OKLaboklab(58.76% 0.1803 -0.1827)
OKLCHoklch(58.76% 0.257 314.6)
XYZxyz(33.1018, 16.9902, 73.4725)
Luminance0.1699 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B22FE2 #5FE22F
analogous
#582FE2 #B22FE2 #E22FB8
triadic
#B22FE2 #E2B22F #2FE2B2
tetradic
#B22FE2 #E2582F #5FE22F #2FB8E2
square
#B22FE2 #E2582F #5FE22F #2FB8E2
split-complementary
#B22FE2 #B8E22F #2FE258
monochromatic
#661284 #8F1ABA #B22FE2 #C665E9 #DA9AF1

Accessibility & contrast

On white

4.78
#B22FE2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.40
#B22FE2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B22FE2
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B22FE2#FFFFFF#000000##FFFFFF
##B22FE21.004.784.404.78
#FFFFFF4.781.0021.001.00
#0000004.4021.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006CE7
Deuteranopia (green-blind)
#2076DE
Tritanopia (blue-blind)
#AE5B8A
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b22fe2;
/* rgb */ color: rgb(178, 47, 226);
/* oklch */ color: oklch(58.8% 0.257 314.6);
Tailwind
colors: {
  custom: {
    50: '#ce78ec',
    500: '#b22fe2',
    950: '#000000',
  },
}
SCSS
$custom: #b22fe2;
$custom-light: #ce78ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b22fe2",
  "rgb": {
    "r": 178,
    "g": 47,
    "b": 226
  },
  "hsl": {
    "h": 283.911,
    "s": 75.527,
    "l": 53.529
  },
  "oklch": {
    "l": 0.58761,
    "c": 0.25666,
    "h": 314.6
  },
  "luminance": 0.16989
}

Semantic roles & 50–950 ramp

primary
#B22FE2
secondary
#A5DD90
accent
#F23668
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B22FE2

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

Preview Lab → · Contrast checker → · Palette generator →

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