#8A48A6#8A48A6

#8A48A6 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.2% C 0.155 H 314.7°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8A48A6
RGBrgb(138, 72, 166)
HSLhsl(282, 39%, 47%)
HSVhsv(282, 57%, 65%)
CMYKcmyk(16.9%, 56.6%, 0%, 34.9%)
CIE-LABlab(42.45, 43.87, -39.42)
CIE-LCHlch(42.45, 58.98, 318.06°)
OKLaboklab(52.24% 0.1092 -0.1102)
OKLCHoklch(52.24% 0.155 314.7)
XYZxyz(19.6804, 12.7918, 37.5013)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48A6 #64A648
analogous
#5B48A6 #8A48A6 #A64893
triadic
#8A48A6 #A68A48 #48A68A
tetradic
#8A48A6 #A65B48 #64A648 #4893A6
square
#8A48A6 #A65B48 #64A648 #4893A6
split-complementary
#8A48A6 #93A648 #48A65B
monochromatic
#432351 #67357B #8A48A6 #A66CBF #C097D2

Accessibility & contrast

On white

5.90
#8A48A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A48A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48A6
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48A6#FFFFFF#000000##FFFFFF
##8A48A61.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F60A9
Deuteranopia (green-blind)
#4766A4
Tritanopia (blue-blind)
#885870
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a48a6;
/* rgb */ color: rgb(138, 72, 166);
/* oklch */ color: oklch(52.2% 0.155 314.7);
Tailwind
colors: {
  custom: {
    50: '#ae7ec1',
    500: '#8a48a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a48a6;
$custom-light: #ae7ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48a6",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 166
  },
  "hsl": {
    "h": 282.128,
    "s": 39.496,
    "l": 46.667
  },
  "oklch": {
    "l": 0.5224,
    "c": 0.15513,
    "h": 314.7
  },
  "luminance": 0.12791
}

Semantic roles & 50–950 ramp

primary
#8A48A6
secondary
#9BBE8C
accent
#CF587C
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A48A6

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

Preview Lab → · Contrast checker → · Palette generator →

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