#8A42A8#8A42A8

#8A42A8 is a mid, vivid purple. Relative luminance 0.121; OKLCH L 51.5% C 0.167 H 314.7°. Best body text is #FFFFFF at 6.13:1 contrast (WCAG AA passes).

Color values

HEX#8A42A8
RGBrgb(138, 66, 168)
HSLhsl(282, 44%, 46%)
HSVhsv(282, 61%, 66%)
CMYKcmyk(17.9%, 60.7%, 0%, 34.1%)
CIE-LABlab(41.42, 47.39, -42.25)
CIE-LCHlch(41.42, 63.48, 318.28°)
OKLaboklab(51.53% 0.1172 -0.1184)
OKLCHoklch(51.53% 0.167 314.7)
XYZxyz(19.4962, 12.1275, 38.3520)
Luminance0.1213 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A8 #60A842
analogous
#5742A8 #8A42A8 #A84293
triadic
#8A42A8 #A88A42 #42A88A
tetradic
#8A42A8 #A85742 #60A842 #4293A8
square
#8A42A8 #A85742 #60A842 #4293A8
split-complementary
#8A42A8 #93A842 #42A857
monochromatic
#421F50 #66317C #8A42A8 #A765C2 #C091D4

Accessibility & contrast

On white

6.13
#8A42A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.43
#8A42A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A8
6.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A8#FFFFFF#000000##FFFFFF
##8A42A81.006.133.436.13
#FFFFFF6.131.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225EAB
Deuteranopia (green-blind)
#4064A5
Tritanopia (blue-blind)
#88546F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a42a8;
/* rgb */ color: rgb(138, 66, 168);
/* oklch */ color: oklch(51.5% 0.167 314.7);
Tailwind
colors: {
  custom: {
    50: '#af7ac2',
    500: '#8a42a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a8;
$custom-light: #af7ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a8",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 168
  },
  "hsl": {
    "h": 282.353,
    "s": 43.59,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51525,
    "c": 0.16662,
    "h": 314.7
  },
  "luminance": 0.12127
}

Semantic roles & 50–950 ramp

primary
#8A42A8
secondary
#97BF87
accent
#D3547A
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A8

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

Preview Lab → · Contrast checker → · Palette generator →

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