#8B48CB#8B48CB

#8B48CB is a mid, vivid violet. Relative luminance 0.144; OKLCH L 54.7% C 0.196 H 304.1°. Best body text is #FFFFFF at 5.40:1 contrast (WCAG AA passes).

Color values

HEX#8B48CB
RGBrgb(139, 72, 203)
HSLhsl(271, 56%, 54%)
HSVhsv(271, 65%, 80%)
CMYKcmyk(31.5%, 64.5%, 0%, 20.4%)
CIE-LABlab(44.85, 52.60, -57.23)
CIE-LCHlch(44.85, 77.73, 312.59°)
OKLaboklab(54.75% 0.11 -0.1623)
OKLCHoklch(54.75% 0.196 304.1)
XYZxyz(23.7419, 14.4356, 58.0239)
Luminance0.1444 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B48CB #88CB48
analogous
#4A48CB #8B48CB #CB48CA
triadic
#8B48CB #CB8B48 #48CB8B
tetradic
#8B48CB #CB4A48 #88CB48 #48CACB
square
#8B48CB #CB4A48 #88CB48 #48CACB
split-complementary
#8B48CB #CACB48 #48CB4A
monochromatic
#4D2277 #6C2FA6 #8B48CB #A978D9 #C7A7E6

Accessibility & contrast

On white

5.40
#8B48CB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.89
#8B48CB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B48CB
5.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B48CB#FFFFFF#000000##FFFFFF
##8B48CB1.005.403.895.40
#FFFFFF5.401.0021.001.00
#0000003.8921.001.0021.00
##FFFFFF5.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CF
Deuteranopia (green-blind)
#206AC8
Tritanopia (blue-blind)
#7F6483
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8b48cb;
/* rgb */ color: rgb(139, 72, 203);
/* oklch */ color: oklch(54.7% 0.196 304.1);
Tailwind
colors: {
  custom: {
    50: '#b17fdc',
    500: '#8b48cb',
    950: '#000000',
  },
}
SCSS
$custom: #8b48cb;
$custom-light: #b17fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8b48cb",
  "rgb": {
    "r": 139,
    "g": 72,
    "b": 203
  },
  "hsl": {
    "h": 270.687,
    "s": 55.745,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54746,
    "c": 0.19611,
    "h": 304.1
  },
  "luminance": 0.14435
}

Semantic roles & 50–950 ramp

primary
#8B48CB
secondary
#B7D39B
accent
#DF4992
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B48CB

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

Preview Lab → · Contrast checker → · Palette generator →

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