#8A42A0#8A42A0

#8A42A0 is a mid, vivid purple. Relative luminance 0.118; OKLCH L 51.0% C 0.158 H 317.7°. Best body text is #FFFFFF at 6.24:1 contrast (WCAG AA passes).

Color values

HEX#8A42A0
RGBrgb(138, 66, 160)
HSLhsl(286, 42%, 44%)
HSVhsv(286, 59%, 63%)
CMYKcmyk(13.8%, 58.8%, 0%, 37.3%)
CIE-LABlab(40.96, 45.68, -38.21)
CIE-LCHlch(40.96, 59.55, 320.09°)
OKLaboklab(51.04% 0.117 -0.1066)
OKLCHoklch(51.04% 0.158 317.7)
XYZxyz(18.7737, 11.8385, 34.5470)
Luminance0.1184 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A0 #58A042
analogous
#5B42A0 #8A42A0 #A04287
triadic
#8A42A0 #A08A42 #42A08A
tetradic
#8A42A0 #A05B42 #58A042 #4287A0
square
#8A42A0 #A05B42 #58A042 #4287A0
split-complementary
#8A42A0 #87A042 #42A05B
monochromatic
#3F1E49 #653075 #8A42A0 #A861BE #C08DD0

Accessibility & contrast

On white

6.24
#8A42A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A42A0
6.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A0#FFFFFF#000000##FFFFFF
##8A42A01.006.243.376.24
#FFFFFF6.241.0021.001.00
#0000003.3721.001.0021.00
##FFFFFF6.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5CA3
Deuteranopia (green-blind)
#45639E
Tritanopia (blue-blind)
#89516B
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a42a0;
/* rgb */ color: rgb(138, 66, 160);
/* oklch */ color: oklch(51.0% 0.158 317.7);
Tailwind
colors: {
  custom: {
    50: '#af7abc',
    500: '#8a42a0',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a0;
$custom-light: #af7abc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a0",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 160
  },
  "hsl": {
    "h": 285.957,
    "s": 41.593,
    "l": 44.314
  },
  "oklch": {
    "l": 0.51042,
    "c": 0.15826,
    "h": 317.7
  },
  "luminance": 0.11838
}

Semantic roles & 50–950 ramp

primary
#8A42A0
secondary
#90BB83
accent
#D15673
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A0

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

Preview Lab → · Contrast checker → · Palette generator →

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