#8A42A6#8A42A6

#8A42A6 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.4% C 0.165 H 315.4°. Best body text is #FFFFFF at 6.16:1 contrast (WCAG AA passes).

Color values

HEX#8A42A6
RGBrgb(138, 66, 166)
HSLhsl(283, 43%, 45%)
HSVhsv(283, 60%, 65%)
CMYKcmyk(16.9%, 60.2%, 0%, 34.9%)
CIE-LABlab(41.30, 46.95, -41.24)
CIE-LCHlch(41.30, 62.50, 318.70°)
OKLaboklab(51.4% 0.1172 -0.1155)
OKLCHoklch(51.4% 0.165 315.4)
XYZxyz(19.3113, 12.0535, 37.3783)
Luminance0.1205 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A6 #5EA642
analogous
#5842A6 #8A42A6 #A64290
triadic
#8A42A6 #A68A42 #42A68A
tetradic
#8A42A6 #A65842 #5EA642 #4290A6
square
#8A42A6 #A65842 #5EA642 #4290A6
split-complementary
#8A42A6 #90A642 #42A658
monochromatic
#411F4E #66317A #8A42A6 #A764C1 #C090D3

Accessibility & contrast

On white

6.16
#8A42A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.41
#8A42A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A6
6.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A6#FFFFFF#000000##FFFFFF
##8A42A61.006.163.416.16
#FFFFFF6.161.0021.001.00
#0000003.4121.001.0021.00
##FFFFFF6.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#245DA9
Deuteranopia (green-blind)
#4163A4
Tritanopia (blue-blind)
#88536E
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a42a6;
/* rgb */ color: rgb(138, 66, 166);
/* oklch */ color: oklch(51.4% 0.165 315.4);
Tailwind
colors: {
  custom: {
    50: '#af7ac1',
    500: '#8a42a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a6;
$custom-light: #af7ac1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a6",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 166
  },
  "hsl": {
    "h": 283.2,
    "s": 43.103,
    "l": 45.49
  },
  "oklch": {
    "l": 0.51402,
    "c": 0.16452,
    "h": 315.4
  },
  "luminance": 0.12053
}

Semantic roles & 50–950 ramp

primary
#8A42A6
secondary
#96BE86
accent
#D35578
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A6

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

Preview Lab → · Contrast checker → · Palette generator →

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