#8A42A9#8A42A9

#8A42A9 is a mid, vivid purple. Relative luminance 0.122; OKLCH L 51.6% C 0.168 H 314.4°. Best body text is #FFFFFF at 6.12:1 contrast (WCAG AA passes).

Color values

HEX#8A42A9
RGBrgb(138, 66, 169)
HSLhsl(282, 44%, 46%)
HSVhsv(282, 61%, 66%)
CMYKcmyk(18.3%, 60.9%, 0%, 33.7%)
CIE-LABlab(41.48, 47.60, -42.75)
CIE-LCHlch(41.48, 63.98, 318.07°)
OKLaboklab(51.59% 0.1172 -0.1199)
OKLCHoklch(51.59% 0.168 314.4)
XYZxyz(19.5897, 12.1649, 38.8445)
Luminance0.1216 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A9 #61A942
analogous
#5642A9 #8A42A9 #A94294
triadic
#8A42A9 #A98A42 #42A98A
tetradic
#8A42A9 #A95642 #61A942 #4294A9
square
#8A42A9 #A95642 #61A942 #4294A9
split-complementary
#8A42A9 #94A942 #42A956
monochromatic
#422051 #66317D #8A42A9 #A765C3 #C091D4

Accessibility & contrast

On white

6.12
#8A42A9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A42A9
6.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A9#FFFFFF#000000##FFFFFF
##8A42A91.006.123.436.12
#FFFFFF6.121.0021.001.00
#0000003.4321.001.0021.00
##FFFFFF6.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#205EAC
Deuteranopia (green-blind)
#3F64A6
Tritanopia (blue-blind)
#87546F
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a42a9;
/* rgb */ color: rgb(138, 66, 169);
/* oklch */ color: oklch(51.6% 0.168 314.4);
Tailwind
colors: {
  custom: {
    50: '#af7ac3',
    500: '#8a42a9',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a9;
$custom-light: #af7ac3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a9",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 169
  },
  "hsl": {
    "h": 281.942,
    "s": 43.83,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51587,
    "c": 0.16767,
    "h": 314.4
  },
  "luminance": 0.12164
}

Semantic roles & 50–950 ramp

primary
#8A42A9
secondary
#98C087
accent
#D4547B
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A9

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

Preview Lab → · Contrast checker → · Palette generator →

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