#8A42A3#8A42A3

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

Color values

HEX#8A42A3
RGBrgb(138, 66, 163)
HSLhsl(285, 42%, 45%)
HSVhsv(285, 60%, 64%)
CMYKcmyk(15.3%, 59.5%, 0%, 36.1%)
CIE-LABlab(41.13, 46.31, -39.73)
CIE-LCHlch(41.13, 61.02, 319.37°)
OKLaboklab(51.22% 0.1171 -0.111)
OKLCHoklch(51.22% 0.161 316.5)
XYZxyz(19.0393, 11.9447, 35.9459)
Luminance0.1194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A3 #5BA342
analogous
#5942A3 #8A42A3 #A3428C
triadic
#8A42A3 #A38A42 #42A38A
tetradic
#8A42A3 #A35942 #5BA342 #428CA3
square
#8A42A3 #A35942 #5BA342 #428CA3
split-complementary
#8A42A3 #8CA342 #42A359
monochromatic
#401F4C #653077 #8A42A3 #A863C0 #C08ED1

Accessibility & contrast

On white

6.20
#8A42A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.39
#8A42A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A3
6.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A3#FFFFFF#000000##FFFFFF
##8A42A31.006.203.396.20
#FFFFFF6.201.0021.001.00
#0000003.3921.001.0021.00
##FFFFFF6.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285DA6
Deuteranopia (green-blind)
#4363A1
Tritanopia (blue-blind)
#89526C
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a42a3;
/* rgb */ color: rgb(138, 66, 163);
/* oklch */ color: oklch(51.2% 0.161 316.5);
Tailwind
colors: {
  custom: {
    50: '#af7abf',
    500: '#8a42a3',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a3;
$custom-light: #af7abf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a3",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 163
  },
  "hsl": {
    "h": 284.536,
    "s": 42.358,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51221,
    "c": 0.16138,
    "h": 316.5
  },
  "luminance": 0.11944
}

Semantic roles & 50–950 ramp

primary
#8A42A3
secondary
#93BC84
accent
#D25676
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A3

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

Preview Lab → · Contrast checker → · Palette generator →

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