#8B48CA#8B48CA

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

Color values

HEX#8B48CA
RGBrgb(139, 72, 202)
HSLhsl(271, 55%, 54%)
HSVhsv(271, 64%, 79%)
CMYKcmyk(31.2%, 64.4%, 0%, 20.8%)
CIE-LABlab(44.78, 52.36, -56.76)
CIE-LCHlch(44.78, 77.23, 312.69°)
OKLaboklab(54.68% 0.1101 -0.161)
OKLCHoklch(54.68% 0.195 304.4)
XYZxyz(23.6231, 14.3881, 57.3983)
Luminance0.1439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8B48CA #87CA48
analogous
#4A48CA #8B48CA #CA48C8
triadic
#8B48CA #CA8B48 #48CA8B
tetradic
#8B48CA #CA4A48 #87CA48 #48C8CA
square
#8B48CA #CA4A48 #87CA48 #48C8CA
split-complementary
#8B48CA #C8CA48 #48CA4A
monochromatic
#4D2276 #6C30A5 #8B48CA #A977D8 #C7A7E5

Accessibility & contrast

On white

5.42
#8B48CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.88
#8B48CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8B48CA
5.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8B48CA#FFFFFF#000000##FFFFFF
##8B48CA1.005.423.885.42
#FFFFFF5.421.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0068CE
Deuteranopia (green-blind)
#226AC7
Tritanopia (blue-blind)
#7F6483
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8b48ca;
/* rgb */ color: rgb(139, 72, 202);
/* oklch */ color: oklch(54.7% 0.195 304.4);
Tailwind
colors: {
  custom: {
    50: '#b17fdb',
    500: '#8b48ca',
    950: '#000000',
  },
}
SCSS
$custom: #8b48ca;
$custom-light: #b17fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8b48ca",
  "rgb": {
    "r": 139,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 270.923,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54676,
    "c": 0.19501,
    "h": 304.4
  },
  "luminance": 0.14388
}

Semantic roles & 50–950 ramp

primary
#8B48CA
secondary
#B6D39B
accent
#DE4992
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8B48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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