#8A48CE#8A48CE

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

Color values

HEX#8A48CE
RGBrgb(138, 72, 206)
HSLhsl(270, 58%, 55%)
HSVhsv(270, 65%, 81%)
CMYKcmyk(33%, 65%, 0%, 19.2%)
CIE-LABlab(44.93, 53.11, -58.84)
CIE-LCHlch(44.93, 79.26, 312.07°)
OKLaboklab(54.84% 0.1084 -0.1671)
OKLCHoklch(54.84% 0.199 303)
XYZxyz(23.9366, 14.4942, 59.9172)
Luminance0.1449 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48CE #8CCE48
analogous
#4849CE #8A48CE #CD48CE
triadic
#8A48CE #CE8A48 #48CE8A
tetradic
#8A48CE #CE4849 #8CCE48 #48CECD
square
#8A48CE #CE4849 #8CCE48 #48CECD
split-complementary
#8A48CE #CECD48 #49CE48
monochromatic
#4D217B #6B2EAB #8A48CE #A978DB #C8A9E8

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A48CE#FFFFFF#000000##FFFFFF
##8A48CE1.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)
#0069D2
Deuteranopia (green-blind)
#176ACB
Tritanopia (blue-blind)
#7D6585
Achromatopsia (no color)
#6A6A6A

Design tokens & code

CSS
--color: #8a48ce;
/* rgb */ color: rgb(138, 72, 206);
/* oklch */ color: oklch(54.8% 0.199 303.0);
Tailwind
colors: {
  custom: {
    50: '#b17fde',
    500: '#8a48ce',
    950: '#000000',
  },
}
SCSS
$custom: #8a48ce;
$custom-light: #b17fde;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48ce",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 206
  },
  "hsl": {
    "h": 269.552,
    "s": 57.759,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54843,
    "c": 0.19918,
    "h": 303
  },
  "luminance": 0.14494
}

Semantic roles & 50–950 ramp

primary
#8A48CE
secondary
#B9D59D
accent
#E14795
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A48CE

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

Preview Lab → · Contrast checker → · Palette generator →

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