#8A48AE#8A48AE

#8A48AE is a mid, vivid violet. Relative luminance 0.131; OKLCH L 52.7% C 0.164 H 311.9°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A48AE
RGBrgb(138, 72, 174)
HSLhsl(279, 41%, 48%)
HSVhsv(279, 59%, 68%)
CMYKcmyk(20.7%, 58.6%, 0%, 31.8%)
CIE-LABlab(42.91, 45.64, -43.43)
CIE-LCHlch(42.91, 63.01, 316.42°)
OKLaboklab(52.72% 0.1096 -0.1219)
OKLCHoklch(52.72% 0.164 311.9)
XYZxyz(20.4372, 13.0945, 41.4871)
Luminance0.1309 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48AE #6CAE48
analogous
#5748AE #8A48AE #AE489F
triadic
#8A48AE #AE8A48 #48AE8A
tetradic
#8A48AE #AE5748 #6CAE48 #489FAE
square
#8A48AE #AE5748 #6CAE48 #489FAE
split-complementary
#8A48AE #9FAE48 #48AE57
monochromatic
#452457 #683683 #8A48AE #A670C4 #C19BD6

Accessibility & contrast

On white

5.80
#8A48AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A48AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48AE
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48AE#FFFFFF#000000##FFFFFF
##8A48AE1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2762B1
Deuteranopia (green-blind)
#4167AB
Tritanopia (blue-blind)
#865A74
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a48ae;
/* rgb */ color: rgb(138, 72, 174);
/* oklch */ color: oklch(52.7% 0.164 311.9);
Tailwind
colors: {
  custom: {
    50: '#af7ec7',
    500: '#8a48ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a48ae;
$custom-light: #af7ec7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48ae",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 174
  },
  "hsl": {
    "h": 278.824,
    "s": 41.463,
    "l": 48.235
  },
  "oklch": {
    "l": 0.52723,
    "c": 0.1639,
    "h": 311.9
  },
  "luminance": 0.13094
}

Semantic roles & 50–950 ramp

primary
#8A48AE
secondary
#A2C290
accent
#D15782
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48AE

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

Preview Lab → · Contrast checker → · Palette generator →

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