#B728E2#B728E2

#B728E2 is a mid, highly saturated purple. Relative luminance 0.171; OKLCH L 59.0% C 0.264 H 316.4°. Best body text is #FFFFFF at 4.76:1 contrast (WCAG AA passes).

Color values

HEX#B728E2
RGBrgb(183, 40, 226)
HSLhsl(286, 76%, 52%)
HSVhsv(286, 82%, 89%)
CMYKcmyk(19%, 82.3%, 0%, 11.4%)
CIE-LABlab(48.36, 77.58, -64.44)
CIE-LCHlch(48.36, 100.85, 320.29°)
OKLaboklab(58.99% 0.191 -0.1819)
OKLCHoklch(58.99% 0.264 316.4)
XYZxyz(34.0126, 17.0773, 73.4414)
Luminance0.1708 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#B728E2 #53E228
analogous
#5A28E2 #B728E2 #E228B0
triadic
#B728E2 #E2B728 #28E2B7
tetradic
#B728E2 #E25A28 #53E228 #28B0E2
square
#B728E2 #E25A28 #53E228 #28B0E2
split-complementary
#B728E2 #B0E228 #28E25A
monochromatic
#65117F #9018B4 #B728E2 #C95EE9 #DB94F1

Accessibility & contrast

On white

4.76
#B728E2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#B728E2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #B728E2
4.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##B728E2#FFFFFF#000000##FFFFFF
##B728E21.004.764.424.76
#FFFFFF4.761.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BE7
Deuteranopia (green-blind)
#2577DE
Tritanopia (blue-blind)
#B45788
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #b728e2;
/* rgb */ color: rgb(183, 40, 226);
/* oklch */ color: oklch(59.0% 0.264 316.4);
Tailwind
colors: {
  custom: {
    50: '#d276ec',
    500: '#b728e2',
    950: '#000000',
  },
}
SCSS
$custom: #b728e2;
$custom-light: #d276ec;
$custom-dark: #000000;
JSON
{
  "hex": "#b728e2",
  "rgb": {
    "r": 183,
    "g": 40,
    "b": 226
  },
  "hsl": {
    "h": 286.129,
    "s": 76.23,
    "l": 52.157
  },
  "oklch": {
    "l": 0.58989,
    "c": 0.26374,
    "h": 316.4
  },
  "luminance": 0.17076
}

Semantic roles & 50–950 ramp

primary
#B728E2
secondary
#9DDC8A
accent
#F33561
background
#FDF7FE
surface
#FBEEFD
border
#D4C9D5
text
#150A16
muted
#837C84

Preview Lab

Preview with #B728E2

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

Preview Lab → · Contrast checker → · Palette generator →

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