#8A48C0#8A48C0

#8A48C0 is a mid, vivid violet. Relative luminance 0.138; OKLCH L 53.9% C 0.184 H 306.5°. Best body text is #FFFFFF at 5.57:1 contrast (WCAG AA passes).

Color values

HEX#8A48C0
RGBrgb(138, 72, 192)
HSLhsl(273, 49%, 52%)
HSVhsv(273, 63%, 75%)
CMYKcmyk(28.1%, 62.5%, 0%, 24.7%)
CIE-LABlab(44.01, 49.78, -52.22)
CIE-LCHlch(44.01, 72.14, 313.63°)
OKLaboklab(53.88% 0.1094 -0.1476)
OKLCHoklch(53.88% 0.184 306.5)
XYZxyz(22.3110, 13.8440, 51.3557)
Luminance0.1384 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48C0 #7EC048
analogous
#4E48C0 #8A48C0 #C048BA
triadic
#8A48C0 #C08A48 #48C08A
tetradic
#8A48C0 #C04E48 #7EC048 #48BAC0
square
#8A48C0 #C04E48 #7EC048 #48BAC0
split-complementary
#8A48C0 #BAC048 #48C04E
monochromatic
#4A2469 #6A3497 #8A48C0 #A776D0 #C4A3DF

Accessibility & contrast

On white

5.57
#8A48C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.77
#8A48C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48C0
5.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48C0#FFFFFF#000000##FFFFFF
##8A48C01.005.573.775.57
#FFFFFF5.571.0021.001.00
#0000003.7721.001.0021.00
##FFFFFF5.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C4
Deuteranopia (green-blind)
#2F68BD
Tritanopia (blue-blind)
#81607D
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a48c0;
/* rgb */ color: rgb(138, 72, 192);
/* oklch */ color: oklch(53.9% 0.184 306.5);
Tailwind
colors: {
  custom: {
    50: '#b07fd4',
    500: '#8a48c0',
    950: '#000000',
  },
}
SCSS
$custom: #8a48c0;
$custom-light: #b07fd4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48c0",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 192
  },
  "hsl": {
    "h": 273,
    "s": 48.78,
    "l": 51.765
  },
  "oklch": {
    "l": 0.5388,
    "c": 0.18375,
    "h": 306.5
  },
  "luminance": 0.13844
}

Semantic roles & 50–950 ramp

primary
#8A48C0
secondary
#AFCC98
accent
#D84F8D
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A48C0

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

Preview Lab → · Contrast checker → · Palette generator →

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