#8A48A2#8A48A2

#8A48A2 is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.0% C 0.151 H 316.3°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A48A2
RGBrgb(138, 72, 162)
HSLhsl(284, 38%, 46%)
HSVhsv(284, 56%, 64%)
CMYKcmyk(14.8%, 55.6%, 0%, 36.5%)
CIE-LABlab(42.23, 43.00, -37.39)
CIE-LCHlch(42.23, 56.98, 318.99°)
OKLaboklab(52.01% 0.1089 -0.1043)
OKLCHoklch(52.01% 0.151 316.3)
XYZxyz(19.3192, 12.6473, 35.5989)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48A2 #60A248
analogous
#5D48A2 #8A48A2 #A2488D
triadic
#8A48A2 #A28A48 #48A28A
tetradic
#8A48A2 #A25D48 #60A248 #488DA2
square
#8A48A2 #A25D48 #60A248 #488DA2
split-complementary
#8A48A2 #8DA248 #48A25D
monochromatic
#42224D #663578 #8A48A2 #A76ABD #C095D0

Accessibility & contrast

On white

5.95
#8A48A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A48A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48A2
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48A2#FFFFFF#000000##FFFFFF
##8A48A21.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3360A5
Deuteranopia (green-blind)
#4966A0
Tritanopia (blue-blind)
#89566E
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a48a2;
/* rgb */ color: rgb(138, 72, 162);
/* oklch */ color: oklch(52.0% 0.151 316.3);
Tailwind
colors: {
  custom: {
    50: '#ae7ebe',
    500: '#8a48a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a48a2;
$custom-light: #ae7ebe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48a2",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 162
  },
  "hsl": {
    "h": 284,
    "s": 38.462,
    "l": 45.882
  },
  "oklch": {
    "l": 0.52007,
    "c": 0.15079,
    "h": 316.3
  },
  "luminance": 0.12647
}

Semantic roles & 50–950 ramp

primary
#8A48A2
secondary
#97BC8A
accent
#CE5979
background
#FAF7FB
surface
#F5EEF7
border
#CFC9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A48A2

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

Preview Lab → · Contrast checker → · Palette generator →

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