#8A42A7#8A42A7

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

Color values

HEX#8A42A7
RGBrgb(138, 66, 167)
HSLhsl(283, 43%, 46%)
HSVhsv(283, 60%, 65%)
CMYKcmyk(17.4%, 60.5%, 0%, 34.5%)
CIE-LABlab(41.36, 47.17, -41.75)
CIE-LCHlch(41.36, 62.99, 318.49°)
OKLaboklab(51.46% 0.1172 -0.1169)
OKLCHoklch(51.46% 0.166 315.1)
XYZxyz(19.4034, 12.0903, 37.8633)
Luminance0.1209 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A7 #5FA742
analogous
#5742A7 #8A42A7 #A74291
triadic
#8A42A7 #A78A42 #42A78A
tetradic
#8A42A7 #A75742 #5FA742 #4291A7
square
#8A42A7 #A75742 #5FA742 #4291A7
split-complementary
#8A42A7 #91A742 #42A757
monochromatic
#421F4F #66317B #8A42A7 #A764C2 #C090D3

Accessibility & contrast

On white

6.14
#8A42A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.42
#8A42A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A7
6.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A7#FFFFFF#000000##FFFFFF
##8A42A71.006.143.426.14
#FFFFFF6.141.0021.001.00
#0000003.4221.001.0021.00
##FFFFFF6.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#235DAA
Deuteranopia (green-blind)
#4164A4
Tritanopia (blue-blind)
#88546E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a42a7;
/* rgb */ color: rgb(138, 66, 167);
/* oklch */ color: oklch(51.5% 0.166 315.1);
Tailwind
colors: {
  custom: {
    50: '#af7ac2',
    500: '#8a42a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a7;
$custom-light: #af7ac2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a7",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 167
  },
  "hsl": {
    "h": 282.772,
    "s": 43.348,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51464,
    "c": 0.16557,
    "h": 315.1
  },
  "luminance": 0.1209
}

Semantic roles & 50–950 ramp

primary
#8A42A7
secondary
#96BE86
accent
#D35579
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A7

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

Preview Lab → · Contrast checker → · Palette generator →

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