#B223E2#B223E2

#B223E2 is a mid, highly saturated purple. Relative luminance 0.162; OKLCH L 58.0% C 0.266 H 315.0°. Best body text is #FFFFFF at 4.96:1 contrast (WCAG AA passes).

Color values

HEX#B223E2
RGBrgb(178, 35, 226)
HSLhsl(285, 77%, 51%)
HSVhsv(285, 85%, 89%)
CMYKcmyk(21.2%, 84.5%, 0%, 11.4%)
CIE-LABlab(47.18, 77.96, -66.38)
CIE-LCHlch(47.18, 102.39, 319.59°)
OKLaboklab(58.02% 0.188 -0.1877)
OKLCHoklch(58.02% 0.266 315)
XYZxyz(32.6863, 16.1593, 73.3340)
Luminance0.1616 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B223E2 #53E223
analogous
#5223E2 #B223E2 #E223B3
triadic
#B223E2 #E2B223 #23E2B2
tetradic
#B223E2 #E25223 #53E223 #23B3E2
square
#B223E2 #E25223 #53E223 #23B3E2
split-complementary
#B223E2 #B3E223 #23E252
monochromatic
#60107A #8A17B1 #B223E2 #C559E9 #D88FF0

Accessibility & contrast

On white

4.96
#B223E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#B223E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B223E2
4.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B223E2#FFFFFF#000000##FFFFFF
##B223E21.004.964.234.96
#FFFFFF4.961.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068E7
Deuteranopia (green-blind)
#0F73DE
Tritanopia (blue-blind)
#AE5688
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #b223e2;
/* rgb */ color: rgb(178, 35, 226);
/* oklch */ color: oklch(58.0% 0.266 315.0);
Tailwind
colors: {
  custom: {
    50: '#cf73ec',
    500: '#b223e2',
    950: '#000000',
  },
}
SCSS
$custom: #b223e2;
$custom-light: #cf73ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b223e2",
  "rgb": {
    "r": 178,
    "g": 35,
    "b": 226
  },
  "hsl": {
    "h": 284.921,
    "s": 76.707,
    "l": 51.176
  },
  "oklch": {
    "l": 0.58017,
    "c": 0.26565,
    "h": 315
  },
  "luminance": 0.16158
}

Semantic roles & 50–950 ramp

primary
#B223E2
secondary
#9BDB86
accent
#F33564
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#150916
muted
#837B84

Preview Lab

Preview with #B223E2

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

Preview Lab → · Contrast checker → · Palette generator →

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