#8A42AE#8A42AE

#8A42AE is a mid, vivid purple. Relative luminance 0.124; OKLCH L 51.9% C 0.173 H 312.7°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#8A42AE
RGBrgb(138, 66, 174)
HSLhsl(280, 45%, 47%)
HSVhsv(280, 62%, 68%)
CMYKcmyk(20.7%, 62.1%, 0%, 31.8%)
CIE-LABlab(41.78, 48.69, -45.23)
CIE-LCHlch(41.78, 66.46, 317.11°)
OKLaboklab(51.9% 0.1172 -0.1271)
OKLCHoklch(51.9% 0.173 312.7)
XYZxyz(20.0681, 12.3562, 41.3640)
Luminance0.1236 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42AE #66AE42
analogous
#5442AE #8A42AE #AE429C
triadic
#8A42AE #AE8A42 #42AE8A
tetradic
#8A42AE #AE5442 #66AE42 #429CAE
square
#8A42AE #AE5442 #66AE42 #429CAE
split-complementary
#8A42AE #9CAE42 #42AE54
monochromatic
#442055 #673182 #8A42AE #A668C6 #C094D6

Accessibility & contrast

On white

6.05
#8A42AE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A42AE on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42AE
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42AE#FFFFFF#000000##FFFFFF
##8A42AE1.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185FB1
Deuteranopia (green-blind)
#3B64AB
Tritanopia (blue-blind)
#865672
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a42ae;
/* rgb */ color: rgb(138, 66, 174);
/* oklch */ color: oklch(51.9% 0.173 312.7);
Tailwind
colors: {
  custom: {
    50: '#af7bc7',
    500: '#8a42ae',
    950: '#000000',
  },
}
SCSS
$custom: #8a42ae;
$custom-light: #af7bc7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42ae",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 174
  },
  "hsl": {
    "h": 280,
    "s": 45,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51902,
    "c": 0.17294,
    "h": 312.7
  },
  "luminance": 0.12356
}

Semantic roles & 50–950 ramp

primary
#8A42AE
secondary
#9DC28A
accent
#D5537E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A42AE

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

Preview Lab → · Contrast checker → · Palette generator →

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