#8A48CC#8A48CC

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

Color values

HEX#8A48CC
RGBrgb(138, 72, 204)
HSLhsl(270, 56%, 54%)
HSVhsv(270, 65%, 80%)
CMYKcmyk(32.4%, 64.7%, 0%, 20%)
CIE-LABlab(44.80, 52.63, -57.90)
CIE-LCHlch(44.80, 78.24, 312.27°)
OKLaboklab(54.7% 0.1086 -0.1643)
OKLCHoklch(54.7% 0.197 303.5)
XYZxyz(23.6952, 14.3977, 58.6457)
Luminance0.1440 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48CC #8ACC48
analogous
#4848CC #8A48CC #CC48CC
triadic
#8A48CC #CC8A48 #48CC8A
tetradic
#8A48CC #CC4848 #8ACC48 #48CCCC
square
#8A48CC #CC4848 #8ACC48 #48CCCC
split-complementary
#8A48CC #CCCC48 #48CC48
monochromatic
#4D2178 #6B2FA8 #8A48CC #A978D9 #C7A8E7

Accessibility & contrast

On white

5.41
#8A48CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A48CC
5.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48CC#FFFFFF#000000##FFFFFF
##8A48CC1.005.413.885.41
#FFFFFF5.411.0021.001.00
#0000003.8821.001.0021.00
##FFFFFF5.411.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a48cc;
/* rgb */ color: rgb(138, 72, 204);
/* oklch */ color: oklch(54.7% 0.197 303.5);
Tailwind
colors: {
  custom: {
    50: '#b17fdc',
    500: '#8a48cc',
    950: '#000000',
  },
}
SCSS
$custom: #8a48cc;
$custom-light: #b17fdc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48cc",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 204
  },
  "hsl": {
    "h": 270,
    "s": 56.41,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54702,
    "c": 0.19698,
    "h": 303.5
  },
  "luminance": 0.14398
}

Semantic roles & 50–950 ramp

primary
#8A48CC
secondary
#B8D49C
accent
#E04894
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A48CC

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

Preview Lab → · Contrast checker → · Palette generator →

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