#8A48A7#8A48A7

#8A48A7 is a mid, vivid purple. Relative luminance 0.128; OKLCH L 52.3% C 0.156 H 314.4°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A48A7
RGBrgb(138, 72, 167)
HSLhsl(282, 40%, 47%)
HSVhsv(282, 57%, 65%)
CMYKcmyk(17.4%, 56.9%, 0%, 34.5%)
CIE-LABlab(42.50, 44.09, -39.93)
CIE-LCHlch(42.50, 59.48, 317.84°)
OKLaboklab(52.3% 0.1093 -0.1117)
OKLCHoklch(52.3% 0.156 314.4)
XYZxyz(19.7725, 12.8286, 37.9863)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A48A7 #65A748
analogous
#5B48A7 #8A48A7 #A74895
triadic
#8A48A7 #A78A48 #48A78A
tetradic
#8A48A7 #A75B48 #65A748 #4895A7
square
#8A48A7 #A75B48 #65A748 #4895A7
split-complementary
#8A48A7 #95A748 #48A75B
monochromatic
#432351 #67367C #8A48A7 #A66CC0 #C097D2

Accessibility & contrast

On white

5.89
#8A48A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A48A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A48A7
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A48A7#FFFFFF#000000##FFFFFF
##8A48A71.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E61AA
Deuteranopia (green-blind)
#4666A5
Tritanopia (blue-blind)
#885870
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a48a7;
/* rgb */ color: rgb(138, 72, 167);
/* oklch */ color: oklch(52.3% 0.156 314.4);
Tailwind
colors: {
  custom: {
    50: '#af7ec1',
    500: '#8a48a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a48a7;
$custom-light: #af7ec1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a48a7",
  "rgb": {
    "r": 138,
    "g": 72,
    "b": 167
  },
  "hsl": {
    "h": 281.684,
    "s": 39.749,
    "l": 46.863
  },
  "oklch": {
    "l": 0.523,
    "c": 0.15623,
    "h": 314.4
  },
  "luminance": 0.12828
}

Semantic roles & 50–950 ramp

primary
#8A48A7
secondary
#9CBE8C
accent
#D0587D
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A48A7

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

Preview Lab → · Contrast checker → · Palette generator →

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