#8A48CA#8A48CA

#8A48CA is a mid, vivid violet. Relative luminance 0.143; OKLCH L 54.6% C 0.195 H 303.9°. Best body text is #FFFFFF at 5.44:1 contrast (WCAG AA passes).

Color values

HEX#8A48CA
RGBrgb(138, 72, 202)
HSLhsl(270, 55%, 54%)
HSVhsv(270, 64%, 79%)
CMYKcmyk(31.7%, 64.4%, 0%, 20.8%)
CIE-LABlab(44.66, 52.15, -56.96)
CIE-LCHlch(44.66, 77.23, 312.47°)
OKLaboklab(54.56% 0.1088 -0.1616)
OKLCHoklch(54.56% 0.195 303.9)
XYZxyz(23.4569, 14.3023, 57.3905)
Luminance0.1430 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48CA #88CA48
analogous
#4948CA #8A48CA #CA48C9
triadic
#8A48CA #CA8A48 #48CA8A
tetradic
#8A48CA #CA4948 #88CA48 #48C9CA
square
#8A48CA #CA4948 #88CA48 #48C9CA
split-complementary
#8A48CA #C9CA48 #48CA49
monochromatic
#4C2276 #6B30A5 #8A48CA #A877D8 #C7A7E5

Accessibility & contrast

On white

5.44
#8A48CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.86
#8A48CA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48CA
5.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48CA#FFFFFF#000000##FFFFFF
##8A48CA1.005.443.865.44
#FFFFFF5.441.0021.001.00
#0000003.8621.001.0021.00
##FFFFFF5.441.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a48ca;
/* rgb */ color: rgb(138, 72, 202);
/* oklch */ color: oklch(54.6% 0.195 303.9);
Tailwind
colors: {
  custom: {
    50: '#b17fdb',
    500: '#8a48ca',
    950: '#000000',
  },
}
SCSS
$custom: #8a48ca;
$custom-light: #b17fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48ca",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 202
  },
  "hsl": {
    "h": 270.462,
    "s": 55.085,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54562,
    "c": 0.19478,
    "h": 303.9
  },
  "luminance": 0.14302
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A48CA

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

Preview Lab → · Contrast checker → · Palette generator →

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