#8A48C6#8A48C6

#8A48C6 is a mid, vivid violet. Relative luminance 0.141; OKLCH L 54.3% C 0.190 H 305.0°. Best body text is #FFFFFF at 5.49:1 contrast (WCAG AA passes).

Color values

HEX#8A48C6
RGBrgb(138, 72, 198)
HSLhsl(271, 53%, 53%)
HSVhsv(271, 64%, 78%)
CMYKcmyk(30.3%, 63.6%, 0%, 22.4%)
CIE-LABlab(44.40, 51.19, -55.08)
CIE-LCHlch(44.40, 75.20, 312.91°)
OKLaboklab(54.29% 0.1091 -0.156)
OKLCHoklch(54.29% 0.19 305)
XYZxyz(22.9894, 14.1154, 54.9285)
Luminance0.1411 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48C6 #84C648
analogous
#4B48C6 #8A48C6 #C648C3
triadic
#8A48C6 #C68A48 #48C68A
tetradic
#8A48C6 #C64B48 #84C648 #48C3C6
square
#8A48C6 #C64B48 #84C648 #48C3C6
split-complementary
#8A48C6 #C3C648 #48C64B
monochromatic
#4C2371 #6B329F #8A48C6 #A877D5 #C6A5E3

Accessibility & contrast

On white

5.49
#8A48C6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.82
#8A48C6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48C6
5.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48C6#FFFFFF#000000##FFFFFF
##8A48C61.005.493.825.49
#FFFFFF5.491.0021.001.00
#0000003.8221.001.0021.00
##FFFFFF5.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CA
Deuteranopia (green-blind)
#2769C3
Tritanopia (blue-blind)
#7F6380
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a48c6;
/* rgb */ color: rgb(138, 72, 198);
/* oklch */ color: oklch(54.3% 0.190 305.0);
Tailwind
colors: {
  custom: {
    50: '#b07fd8',
    500: '#8a48c6',
    950: '#000000',
  },
}
SCSS
$custom: #8a48c6;
$custom-light: #b07fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48c6",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 198
  },
  "hsl": {
    "h": 271.429,
    "s": 52.5,
    "l": 52.941
  },
  "oklch": {
    "l": 0.54286,
    "c": 0.19037,
    "h": 305
  },
  "luminance": 0.14115
}

Semantic roles & 50–950 ramp

primary
#8A48C6
secondary
#B4D09A
accent
#DC4C90
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A48C6

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

Preview Lab → · Contrast checker → · Palette generator →

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