#8A48B6#8A48B6

#8A48B6 is a mid, vivid violet. Relative luminance 0.134; OKLCH L 53.2% C 0.173 H 309.4°. Best body text is #FFFFFF at 5.70:1 contrast (WCAG AA passes).

Color values

HEX#8A48B6
RGBrgb(138, 72, 182)
HSLhsl(276, 43%, 50%)
HSVhsv(276, 60%, 71%)
CMYKcmyk(24.2%, 60.4%, 0%, 28.6%)
CIE-LABlab(43.38, 47.46, -47.38)
CIE-LCHlch(43.38, 67.06, 315.05°)
OKLaboklab(53.23% 0.1096 -0.1334)
OKLCHoklch(53.23% 0.173 309.4)
XYZxyz(21.2404, 13.4158, 45.7175)
Luminance0.1341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48B6 #74B648
analogous
#5348B6 #8A48B6 #B648AB
triadic
#8A48B6 #B68A48 #48B68A
tetradic
#8A48B6 #B65348 #74B648 #48ABB6
square
#8A48B6 #B65348 #74B648 #48ABB6
split-complementary
#8A48B6 #ABB648 #48B653
monochromatic
#47255E #69378A #8A48B6 #A673C8 #C29FD9

Accessibility & contrast

On white

5.70
#8A48B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.68
#8A48B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48B6
5.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48B6#FFFFFF#000000##FFFFFF
##8A48B61.005.703.685.70
#FFFFFF5.701.0021.001.00
#0000003.6821.001.0021.00
##FFFFFF5.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B64B9
Deuteranopia (green-blind)
#3A67B3
Tritanopia (blue-blind)
#845D78
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a48b6;
/* rgb */ color: rgb(138, 72, 182);
/* oklch */ color: oklch(53.2% 0.173 309.4);
Tailwind
colors: {
  custom: {
    50: '#af7ecc',
    500: '#8a48b6',
    950: '#000000',
  },
}
SCSS
$custom: #8a48b6;
$custom-light: #af7ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48b6",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 182
  },
  "hsl": {
    "h": 276,
    "s": 43.307,
    "l": 49.804
  },
  "oklch": {
    "l": 0.53226,
    "c": 0.17271,
    "h": 309.4
  },
  "luminance": 0.13415
}

Semantic roles & 50–950 ramp

primary
#8A48B6
secondary
#A8C694
accent
#D35587
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48B6

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

Preview Lab → · Contrast checker → · Palette generator →

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