#8A48C2#8A48C2

#8A48C2 is a mid, vivid violet. Relative luminance 0.139; OKLCH L 54.0% C 0.186 H 306.0°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#8A48C2
RGBrgb(138, 72, 194)
HSLhsl(272, 50%, 52%)
HSVhsv(272, 63%, 76%)
CMYKcmyk(28.9%, 62.9%, 0%, 23.9%)
CIE-LABlab(44.14, 50.25, -53.18)
CIE-LCHlch(44.14, 73.16, 313.38°)
OKLaboklab(54.01% 0.1093 -0.1504)
OKLCHoklch(54.01% 0.186 306)
XYZxyz(22.5341, 13.9332, 52.5307)
Luminance0.1393 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48C2 #80C248
analogous
#4D48C2 #8A48C2 #C248BD
triadic
#8A48C2 #C28A48 #48C28A
tetradic
#8A48C2 #C24D48 #80C248 #48BDC2
square
#8A48C2 #C24D48 #80C248 #48BDC2
split-complementary
#8A48C2 #BDC248 #48C24D
monochromatic
#4B246C #6B339A #8A48C2 #A776D1 #C5A4E1

Accessibility & contrast

On white

5.55
#8A48C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.79
#8A48C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48C2
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48C2#FFFFFF#000000##FFFFFF
##8A48C21.005.553.795.55
#FFFFFF5.551.0021.001.00
#0000003.7921.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066C6
Deuteranopia (green-blind)
#2D69BF
Tritanopia (blue-blind)
#80617E
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a48c2;
/* rgb */ color: rgb(138, 72, 194);
/* oklch */ color: oklch(54.0% 0.186 306.0);
Tailwind
colors: {
  custom: {
    50: '#b07fd5',
    500: '#8a48c2',
    950: '#000000',
  },
}
SCSS
$custom: #8a48c2;
$custom-light: #b07fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48c2",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 194
  },
  "hsl": {
    "h": 272.459,
    "s": 50,
    "l": 52.157
  },
  "oklch": {
    "l": 0.54014,
    "c": 0.18596,
    "h": 306
  },
  "luminance": 0.13933
}

Semantic roles & 50–950 ramp

primary
#8A48C2
secondary
#B1CE98
accent
#DA4E8E
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110A14
muted
#807C83

Preview Lab

Preview with #8A48C2

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

Preview Lab → · Contrast checker → · Palette generator →

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