#8A42AB#8A42AB

#8A42AB is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.7% C 0.170 H 313.7°. Best body text is #FFFFFF at 6.09:1 contrast (WCAG AA passes).

Color values

HEX#8A42AB
RGBrgb(138, 66, 171)
HSLhsl(281, 44%, 46%)
HSVhsv(281, 61%, 67%)
CMYKcmyk(19.3%, 61.4%, 0%, 32.9%)
CIE-LABlab(41.60, 48.04, -43.75)
CIE-LCHlch(41.60, 64.97, 317.68°)
OKLaboklab(51.71% 0.1173 -0.1228)
OKLCHoklch(51.71% 0.17 313.7)
XYZxyz(19.7789, 12.2406, 39.8409)
Luminance0.1224 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42AB #63AB42
analogous
#5642AB #8A42AB #AB4298
triadic
#8A42AB #AB8A42 #42AB8A
tetradic
#8A42AB #AB5642 #63AB42 #4298AB
square
#8A42AB #AB5642 #63AB42 #4298AB
split-complementary
#8A42AB #98AB42 #42AB56
monochromatic
#432053 #66317F #8A42AB #A766C4 #C092D5

Accessibility & contrast

On white

6.09
#8A42AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A42AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42AB
6.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42AB#FFFFFF#000000##FFFFFF
##8A42AB1.006.093.456.09
#FFFFFF6.091.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D5EAE
Deuteranopia (green-blind)
#3D64A8
Tritanopia (blue-blind)
#875570
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a42ab;
/* rgb */ color: rgb(138, 66, 171);
/* oklch */ color: oklch(51.7% 0.170 313.7);
Tailwind
colors: {
  custom: {
    50: '#af7ac4',
    500: '#8a42ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a42ab;
$custom-light: #af7ac4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42ab",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 171
  },
  "hsl": {
    "h": 281.143,
    "s": 44.304,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51712,
    "c": 0.16977,
    "h": 313.7
  },
  "luminance": 0.1224
}

Semantic roles & 50–950 ramp

primary
#8A42AB
secondary
#9AC088
accent
#D4547C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A42AB

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

Preview Lab → · Contrast checker → · Palette generator →

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