#8A42A1#8A42A1

#8A42A1 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.1% C 0.159 H 317.3°. Best body text is #FFFFFF at 6.22:1 contrast (WCAG AA passes).

Color values

HEX#8A42A1
RGBrgb(138, 66, 161)
HSLhsl(285, 42%, 45%)
HSVhsv(285, 59%, 63%)
CMYKcmyk(14.3%, 59%, 0%, 36.9%)
CIE-LABlab(41.01, 45.89, -38.72)
CIE-LCHlch(41.01, 60.04, 319.85°)
OKLaboklab(51.1% 0.117 -0.1081)
OKLCHoklch(51.1% 0.159 317.3)
XYZxyz(18.8615, 11.8736, 35.0096)
Luminance0.1187 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A1 #59A142
analogous
#5B42A1 #8A42A1 #A14288
triadic
#8A42A1 #A18A42 #42A18A
tetradic
#8A42A1 #A15B42 #59A142 #4288A1
square
#8A42A1 #A15B42 #59A142 #4288A1
split-complementary
#8A42A1 #88A142 #42A15B
monochromatic
#401E4A #653076 #8A42A1 #A862BF #C08DD0

Accessibility & contrast

On white

6.22
#8A42A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.37
#8A42A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A1
6.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A1#FFFFFF#000000##FFFFFF
##8A42A11.006.223.376.22
#FFFFFF6.221.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5CA4
Deuteranopia (green-blind)
#45639F
Tritanopia (blue-blind)
#89526B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a42a1;
/* rgb */ color: rgb(138, 66, 161);
/* oklch */ color: oklch(51.1% 0.159 317.3);
Tailwind
colors: {
  custom: {
    50: '#af7abd',
    500: '#8a42a1',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a1;
$custom-light: #af7abd;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a1",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 161
  },
  "hsl": {
    "h": 285.474,
    "s": 41.85,
    "l": 44.51
  },
  "oklch": {
    "l": 0.51101,
    "c": 0.15929,
    "h": 317.3
  },
  "luminance": 0.11873
}

Semantic roles & 50–950 ramp

primary
#8A42A1
secondary
#91BB83
accent
#D25674
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A1

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

Preview Lab → · Contrast checker → · Palette generator →

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