#B228E2#B228E2

#B228E2 is a mid, highly saturated purple. Relative luminance 0.165; OKLCH L 58.3% C 0.262 H 314.9°. Best body text is #FFFFFF at 4.89:1 contrast (WCAG AA passes).

Color values

HEX#B228E2
RGBrgb(178, 40, 226)
HSLhsl(285, 76%, 52%)
HSVhsv(285, 82%, 89%)
CMYKcmyk(21.2%, 82.3%, 0%, 11.4%)
CIE-LABlab(47.59, 76.77, -65.71)
CIE-LCHlch(47.59, 101.05, 319.44°)
OKLaboklab(58.3% 0.185 -0.1858)
OKLCHoklch(58.3% 0.262 314.9)
XYZxyz(32.8441, 16.4748, 73.3866)
Luminance0.1647 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B228E2 #58E228
analogous
#5528E2 #B228E2 #E228B5
triadic
#B228E2 #E2B228 #28E2B2
tetradic
#B228E2 #E25528 #58E228 #28B5E2
square
#B228E2 #E25528 #58E228 #28B5E2
split-complementary
#B228E2 #B5E228 #28E255
monochromatic
#62117F #8C18B4 #B228E2 #C55EE9 #D994F1

Accessibility & contrast

On white

4.89
#B228E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#B228E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B228E2
4.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B228E2#FFFFFF#000000##FFFFFF
##B228E21.004.894.294.89
#FFFFFF4.891.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#1774DE
Tritanopia (blue-blind)
#AE5888
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #b228e2;
/* rgb */ color: rgb(178, 40, 226);
/* oklch */ color: oklch(58.3% 0.262 314.9);
Tailwind
colors: {
  custom: {
    50: '#ce75ec',
    500: '#b228e2',
    950: '#000000',
  },
}
SCSS
$custom: #b228e2;
$custom-light: #ce75ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b228e2",
  "rgb": {
    "r": 178,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 284.516,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58302,
    "c": 0.26219,
    "h": 314.9
  },
  "luminance": 0.16474
}

Semantic roles & 50–950 ramp

primary
#B228E2
secondary
#9FDC8A
accent
#F33566
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#140A16
muted
#837C84

Preview Lab

Preview with #B228E2

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

Preview Lab → · Contrast checker → · Palette generator →

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