#8B48CC#8B48CC

#8B48CC is a mid, vivid violet. Relative luminance 0.145; OKLCH L 54.8% C 0.197 H 303.9°. Best body text is #FFFFFF at 5.39:1 contrast (WCAG AA passes).

Color values

HEX#8B48CC
RGBrgb(139, 72, 204)
HSLhsl(270, 56%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(31.9%, 64.7%, 0%, 20%)
CIE-LABlab(44.92, 52.84, -57.70)
CIE-LCHlch(44.92, 78.24, 312.48°)
OKLaboklab(54.82% 0.1099 -0.1637)
OKLCHoklch(54.82% 0.197 303.9)
XYZxyz(23.8614, 14.4834, 58.6535)
Luminance0.1448 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B48CC #89CC48
analogous
#4948CC #8B48CC #CC48CB
triadic
#8B48CC #CC8B48 #48CC8B
tetradic
#8B48CC #CC4948 #89CC48 #48CBCC
square
#8B48CC #CC4948 #89CC48 #48CBCC
split-complementary
#8B48CC #CBCC48 #48CC49
monochromatic
#4D2178 #6C2FA8 #8B48CC #A978D9 #C8A8E7

Accessibility & contrast

On white

5.39
#8B48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.90
#8B48CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B48CC
5.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B48CC#FFFFFF#000000##FFFFFF
##8B48CC1.005.393.905.39
#FFFFFF5.391.0021.001.00
#0000003.9021.001.0021.00
##FFFFFF5.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069D0
Deuteranopia (green-blind)
#1E6AC9
Tritanopia (blue-blind)
#7F6584
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8b48cc;
/* rgb */ color: rgb(139, 72, 204);
/* oklch */ color: oklch(54.8% 0.197 303.9);
Tailwind
colors: {
  custom: {
    50: '#b17fdc',
    500: '#8b48cc',
    950: '#000000',
  },
}
SCSS
$custom: #8b48cc;
$custom-light: #b17fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b48cc",
  "rgb": {
    "r": 139,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 270.455,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54816,
    "c": 0.1972,
    "h": 303.9
  },
  "luminance": 0.14483
}

Semantic roles & 50–950 ramp

primary
#8B48CC
secondary
#B7D49C
accent
#E04893
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B48CC

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

Preview Lab → · Contrast checker → · Palette generator →

#8B48CC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva