#8A42A2#8A42A2

#8A42A2 is a mid, vivid purple. Relative luminance 0.119; OKLCH L 51.2% C 0.160 H 316.9°. Best body text is #FFFFFF at 6.21:1 contrast (WCAG AA passes).

Color values

HEX#8A42A2
RGBrgb(138, 66, 162)
HSLhsl(285, 42%, 45%)
HSVhsv(285, 59%, 64%)
CMYKcmyk(14.8%, 59.3%, 0%, 36.5%)
CIE-LABlab(41.07, 46.10, -39.22)
CIE-LCHlch(41.07, 60.53, 319.61°)
OKLaboklab(51.16% 0.1171 -0.1096)
OKLCHoklch(51.16% 0.16 316.9)
XYZxyz(18.9501, 11.9090, 35.4759)
Luminance0.1191 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A2 #5AA242
analogous
#5A42A2 #8A42A2 #A2428A
triadic
#8A42A2 #A28A42 #42A28A
tetradic
#8A42A2 #A25A42 #5AA242 #428AA2
square
#8A42A2 #A25A42 #5AA242 #428AA2
split-complementary
#8A42A2 #8AA242 #42A25A
monochromatic
#401F4B #653077 #8A42A2 #A862BF #C08ED1

Accessibility & contrast

On white

6.21
#8A42A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.38
#8A42A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A2
6.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A2#FFFFFF#000000##FFFFFF
##8A42A21.006.213.386.21
#FFFFFF6.211.0021.001.00
#0000003.3821.001.0021.00
##FFFFFF6.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295CA5
Deuteranopia (green-blind)
#4463A0
Tritanopia (blue-blind)
#89526C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a42a2;
/* rgb */ color: rgb(138, 66, 162);
/* oklch */ color: oklch(51.2% 0.160 316.9);
Tailwind
colors: {
  custom: {
    50: '#af7abe',
    500: '#8a42a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a2;
$custom-light: #af7abe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a2",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 162
  },
  "hsl": {
    "h": 285,
    "s": 42.105,
    "l": 44.706
  },
  "oklch": {
    "l": 0.51161,
    "c": 0.16033,
    "h": 316.9
  },
  "luminance": 0.11908
}

Semantic roles & 50–950 ramp

primary
#8A42A2
secondary
#92BC84
accent
#D25675
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A2

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

Preview Lab → · Contrast checker → · Palette generator →

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