#8A48C7#8A48C7

#8A48C7 is a mid, vivid violet. Relative luminance 0.142; OKLCH L 54.4% C 0.191 H 304.7°. Best body text is #FFFFFF at 5.48:1 contrast (WCAG AA passes).

Color values

HEX#8A48C7
RGBrgb(138, 72, 199)
HSLhsl(271, 53%, 53%)
HSVhsv(271, 64%, 78%)
CMYKcmyk(30.7%, 63.8%, 0%, 22%)
CIE-LABlab(44.46, 51.43, -55.55)
CIE-LCHlch(44.46, 75.70, 312.80°)
OKLaboklab(54.36% 0.109 -0.1574)
OKLCHoklch(54.36% 0.191 304.7)
XYZxyz(23.1051, 14.1616, 55.5380)
Luminance0.1416 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48C7 #85C748
analogous
#4A48C7 #8A48C7 #C748C4
triadic
#8A48C7 #C78A48 #48C78A
tetradic
#8A48C7 #C74A48 #85C748 #48C4C7
square
#8A48C7 #C74A48 #85C748 #48C4C7
split-complementary
#8A48C7 #C4C748 #48C74A
monochromatic
#4C2372 #6B31A1 #8A48C7 #A877D5 #C6A6E4

Accessibility & contrast

On white

5.48
#8A48C7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.83
#8A48C7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48C7
5.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48C7#FFFFFF#000000##FFFFFF
##8A48C71.005.483.835.48
#FFFFFF5.481.0021.001.00
#0000003.8321.001.0021.00
##FFFFFF5.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067CB
Deuteranopia (green-blind)
#2569C4
Tritanopia (blue-blind)
#7F6381
Achromatopsia (no color)
#696969

Design tokens & code

CSS
--color: #8a48c7;
/* rgb */ color: rgb(138, 72, 199);
/* oklch */ color: oklch(54.4% 0.191 304.7);
Tailwind
colors: {
  custom: {
    50: '#b07fd9',
    500: '#8a48c7',
    950: '#000000',
  },
}
SCSS
$custom: #8a48c7;
$custom-light: #b07fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48c7",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 199
  },
  "hsl": {
    "h": 271.181,
    "s": 53.138,
    "l": 53.137
  },
  "oklch": {
    "l": 0.54355,
    "c": 0.19148,
    "h": 304.7
  },
  "luminance": 0.14162
}

Semantic roles & 50–950 ramp

primary
#8A48C7
secondary
#B4D19A
accent
#DD4B91
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A48C7

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

Preview Lab → · Contrast checker → · Palette generator →

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