#8A48B7#8A48B7

#8A48B7 is a mid, vivid violet. Relative luminance 0.135; OKLCH L 53.3% C 0.174 H 309.1°. Best body text is #FFFFFF at 5.69:1 contrast (WCAG AA passes).

Color values

HEX#8A48B7
RGBrgb(138, 72, 183)
HSLhsl(276, 44%, 50%)
HSVhsv(276, 61%, 72%)
CMYKcmyk(24.6%, 60.7%, 0%, 28.2%)
CIE-LABlab(43.44, 47.69, -47.87)
CIE-LCHlch(43.44, 67.57, 314.89°)
OKLaboklab(53.29% 0.1096 -0.1349)
OKLCHoklch(53.29% 0.174 309.1)
XYZxyz(21.3442, 13.4573, 46.2637)
Luminance0.1346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48B7 #75B748
analogous
#5348B7 #8A48B7 #B748AC
triadic
#8A48B7 #B78A48 #48B78A
tetradic
#8A48B7 #B75348 #75B748 #48ACB7
square
#8A48B7 #B75348 #75B748 #48ACB7
split-complementary
#8A48B7 #ACB748 #48B753
monochromatic
#48255F #69378B #8A48B7 #A674C8 #C2A0DA

Accessibility & contrast

On white

5.69
#8A48B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.69
#8A48B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48B7
5.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48B7#FFFFFF#000000##FFFFFF
##8A48B71.005.693.695.69
#FFFFFF5.691.0021.001.00
#0000003.6921.001.0021.00
##FFFFFF5.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1964BB
Deuteranopia (green-blind)
#3968B4
Tritanopia (blue-blind)
#845D79
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a48b7;
/* rgb */ color: rgb(138, 72, 183);
/* oklch */ color: oklch(53.3% 0.174 309.1);
Tailwind
colors: {
  custom: {
    50: '#af7ecd',
    500: '#8a48b7',
    950: '#000000',
  },
}
SCSS
$custom: #8a48b7;
$custom-light: #af7ecd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48b7",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 183
  },
  "hsl": {
    "h": 275.676,
    "s": 43.529,
    "l": 50
  },
  "oklch": {
    "l": 0.5329,
    "c": 0.17381,
    "h": 309.1
  },
  "luminance": 0.13457
}

Semantic roles & 50–950 ramp

primary
#8A48B7
secondary
#A9C695
accent
#D35588
background
#FBF7FC
surface
#F6EEF9
border
#D0C9D2
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48B7

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

Preview Lab → · Contrast checker → · Palette generator →

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