#8A42AA#8A42AA

#8A42AA is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.6% C 0.169 H 314.0°. Best body text is #FFFFFF at 6.10:1 contrast (WCAG AA passes).

Color values

HEX#8A42AA
RGBrgb(138, 66, 170)
HSLhsl(282, 44%, 46%)
HSVhsv(282, 61%, 67%)
CMYKcmyk(18.8%, 61.2%, 0%, 33.3%)
CIE-LABlab(41.54, 47.82, -43.25)
CIE-LCHlch(41.54, 64.47, 317.87°)
OKLaboklab(51.65% 0.1173 -0.1213)
OKLCHoklch(51.65% 0.169 314)
XYZxyz(19.6839, 12.2026, 39.3408)
Luminance0.1220 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42AA #62AA42
analogous
#5642AA #8A42AA #AA4296
triadic
#8A42AA #AA8A42 #42AA8A
tetradic
#8A42AA #AA5642 #62AA42 #4296AA
square
#8A42AA #AA5642 #62AA42 #4296AA
split-complementary
#8A42AA #96AA42 #42AA56
monochromatic
#422052 #66317E #8A42AA #A766C3 #C092D5

Accessibility & contrast

On white

6.10
#8A42AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.44
#8A42AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42AA
6.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42AA#FFFFFF#000000##FFFFFF
##8A42AA1.006.103.446.10
#FFFFFF6.101.0021.001.00
#0000003.4421.001.0021.00
##FFFFFF6.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5EAD
Deuteranopia (green-blind)
#3E64A7
Tritanopia (blue-blind)
#875570
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a42aa;
/* rgb */ color: rgb(138, 66, 170);
/* oklch */ color: oklch(51.6% 0.169 314.0);
Tailwind
colors: {
  custom: {
    50: '#af7ac4',
    500: '#8a42aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a42aa;
$custom-light: #af7ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42aa",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 170
  },
  "hsl": {
    "h": 281.538,
    "s": 44.068,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51649,
    "c": 0.16872,
    "h": 314
  },
  "luminance": 0.12202
}

Semantic roles & 50–950 ramp

primary
#8A42AA
secondary
#99C088
accent
#D4547B
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A42AA

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

Preview Lab → · Contrast checker → · Palette generator →

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