#B428E2#B428E2

#B428E2 is a mid, highly saturated purple. Relative luminance 0.167; OKLCH L 58.6% C 0.263 H 315.5°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#B428E2
RGBrgb(180, 40, 226)
HSLhsl(285, 76%, 52%)
HSVhsv(285, 82%, 89%)
CMYKcmyk(20.4%, 82.3%, 0%, 11.4%)
CIE-LABlab(47.90, 77.09, -65.20)
CIE-LCHlch(47.90, 100.97, 319.77°)
OKLaboklab(58.58% 0.1874 -0.1842)
OKLCHoklch(58.58% 0.263 315.5)
XYZxyz(33.3064, 16.7132, 73.4083)
Luminance0.1671 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B428E2 #56E228
analogous
#5728E2 #B428E2 #E228B3
triadic
#B428E2 #E2B428 #28E2B4
tetradic
#B428E2 #E25728 #56E228 #28B3E2
square
#B428E2 #E25728 #56E228 #28B3E2
split-complementary
#B428E2 #B3E228 #28E257
monochromatic
#63117F #8E18B4 #B428E2 #C75EE9 #DA94F1

Accessibility & contrast

On white

4.84
#B428E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#B428E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B428E2
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B428E2#FFFFFF#000000##FFFFFF
##B428E21.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006AE7
Deuteranopia (green-blind)
#1D75DE
Tritanopia (blue-blind)
#B05788
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #b428e2;
/* rgb */ color: rgb(180, 40, 226);
/* oklch */ color: oklch(58.6% 0.263 315.5);
Tailwind
colors: {
  custom: {
    50: '#d075ec',
    500: '#b428e2',
    950: '#000000',
  },
}
SCSS
$custom: #b428e2;
$custom-light: #d075ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b428e2",
  "rgb": {
    "r": 180,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 285.161,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58576,
    "c": 0.2628,
    "h": 315.5
  },
  "luminance": 0.16712
}

Semantic roles & 50–950 ramp

primary
#B428E2
secondary
#9EDC8A
accent
#F33564
background
#FDF7FE
surface
#FAEEFD
border
#D3C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #B428E2

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

Preview Lab → · Contrast checker → · Palette generator →

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