#8A42AC#8A42AC

#8A42AC is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.8% C 0.171 H 313.3°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A42AC
RGBrgb(138, 66, 172)
HSLhsl(281, 45%, 47%)
HSVhsv(281, 62%, 67%)
CMYKcmyk(19.8%, 61.6%, 0%, 32.5%)
CIE-LABlab(41.66, 48.26, -44.24)
CIE-LCHlch(41.66, 65.47, 317.48°)
OKLaboklab(51.78% 0.1173 -0.1242)
OKLCHoklch(51.78% 0.171 313.3)
XYZxyz(19.8746, 12.2788, 40.3448)
Luminance0.1228 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42AC #64AC42
analogous
#5542AC #8A42AC #AC4299
triadic
#8A42AC #AC8A42 #42AC8A
tetradic
#8A42AC #AC5542 #64AC42 #4299AC
square
#8A42AC #AC5542 #64AC42 #4299AC
split-complementary
#8A42AC #99AC42 #42AC55
monochromatic
#432054 #673180 #8A42AC #A667C5 #C093D6

Accessibility & contrast

On white

6.08
#8A42AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.46
#8A42AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42AC
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42AC#FFFFFF#000000##FFFFFF
##8A42AC1.006.083.466.08
#FFFFFF6.081.0021.001.00
#0000003.4621.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5EAF
Deuteranopia (green-blind)
#3D64A9
Tritanopia (blue-blind)
#875571
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a42ac;
/* rgb */ color: rgb(138, 66, 172);
/* oklch */ color: oklch(51.8% 0.171 313.3);
Tailwind
colors: {
  custom: {
    50: '#af7ac5',
    500: '#8a42ac',
    950: '#000000',
  },
}
SCSS
$custom: #8a42ac;
$custom-light: #af7ac5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42ac",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 172
  },
  "hsl": {
    "h": 280.755,
    "s": 44.538,
    "l": 46.667
  },
  "oklch": {
    "l": 0.51775,
    "c": 0.17084,
    "h": 313.3
  },
  "luminance": 0.12278
}

Semantic roles & 50–950 ramp

primary
#8A42AC
secondary
#9BC189
accent
#D4547D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110913
muted
#807B82

Preview Lab

Preview with #8A42AC

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

Preview Lab → · Contrast checker → · Palette generator →

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