#8A48B1#8A48B1

#8A48B1 is a mid, vivid violet. Relative luminance 0.132; OKLCH L 52.9% C 0.167 H 311.0°. Best body text is #FFFFFF at 5.77:1 contrast (WCAG AA passes).

Color values

HEX#8A48B1
RGBrgb(138, 72, 177)
HSLhsl(278, 42%, 49%)
HSVhsv(278, 59%, 69%)
CMYKcmyk(22%, 59.3%, 0%, 30.6%)
CIE-LABlab(43.08, 46.32, -44.92)
CIE-LCHlch(43.08, 64.52, 315.88°)
OKLaboklab(52.91% 0.1096 -0.1262)
OKLCHoklch(52.91% 0.167 311)
XYZxyz(20.7329, 13.2128, 43.0446)
Luminance0.1321 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48B1 #6FB148
analogous
#5648B1 #8A48B1 #B148A4
triadic
#8A48B1 #B18A48 #48B18A
tetradic
#8A48B1 #B15648 #6FB148 #48A4B1
square
#8A48B1 #B15648 #6FB148 #48A4B1
split-complementary
#8A48B1 #A4B148 #48B156
monochromatic
#46255A #683685 #8A48B1 #A671C5 #C19CD7

Accessibility & contrast

On white

5.77
#8A48B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A48B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48B1
5.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48B1#FFFFFF#000000##FFFFFF
##8A48B11.005.773.645.77
#FFFFFF5.771.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2363B4
Deuteranopia (green-blind)
#3E67AE
Tritanopia (blue-blind)
#855B76
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a48b1;
/* rgb */ color: rgb(138, 72, 177);
/* oklch */ color: oklch(52.9% 0.167 311.0);
Tailwind
colors: {
  custom: {
    50: '#af7ec9',
    500: '#8a48b1',
    950: '#000000',
  },
}
SCSS
$custom: #8a48b1;
$custom-light: #af7ec9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48b1",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 177
  },
  "hsl": {
    "h": 277.714,
    "s": 42.169,
    "l": 48.824
  },
  "oklch": {
    "l": 0.52909,
    "c": 0.1672,
    "h": 311
  },
  "luminance": 0.13212
}

Semantic roles & 50–950 ramp

primary
#8A48B1
secondary
#A4C391
accent
#D25684
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A48B1

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

Preview Lab → · Contrast checker → · Palette generator →

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