#8A42A4#8A42A4

#8A42A4 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.3% C 0.162 H 316.1°. Best body text is #FFFFFF at 6.18:1 contrast (WCAG AA passes).

Color values

HEX#8A42A4
RGBrgb(138, 66, 164)
HSLhsl(284, 43%, 45%)
HSVhsv(284, 60%, 64%)
CMYKcmyk(15.9%, 59.8%, 0%, 35.7%)
CIE-LABlab(41.19, 46.53, -40.24)
CIE-LCHlch(41.19, 61.51, 319.15°)
OKLaboklab(51.28% 0.1171 -0.1125)
OKLCHoklch(51.28% 0.162 316.1)
XYZxyz(19.1293, 11.9807, 36.4196)
Luminance0.1198 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A4 #5CA442
analogous
#5942A4 #8A42A4 #A4428D
triadic
#8A42A4 #A48A42 #42A48A
tetradic
#8A42A4 #A45942 #5CA442 #428DA4
square
#8A42A4 #A45942 #5CA442 #428DA4
split-complementary
#8A42A4 #8DA442 #42A459
monochromatic
#411F4D #653078 #8A42A4 #A763C0 #C08FD2

Accessibility & contrast

On white

6.18
#8A42A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A42A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A4
6.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A4#FFFFFF#000000##FFFFFF
##8A42A41.006.183.406.18
#FFFFFF6.181.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275DA7
Deuteranopia (green-blind)
#4363A2
Tritanopia (blue-blind)
#89536D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a42a4;
/* rgb */ color: rgb(138, 66, 164);
/* oklch */ color: oklch(51.3% 0.162 316.1);
Tailwind
colors: {
  custom: {
    50: '#af7abf',
    500: '#8a42a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a4;
$custom-light: #af7abf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a4",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 164
  },
  "hsl": {
    "h": 284.082,
    "s": 42.609,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51281,
    "c": 0.16243,
    "h": 316.1
  },
  "luminance": 0.1198
}

Semantic roles & 50–950 ramp

primary
#8A42A4
secondary
#94BD85
accent
#D25577
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A4

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

Preview Lab → · Contrast checker → · Palette generator →

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