#8A42A5#8A42A5

#8A42A5 is a mid, vivid purple. Relative luminance 0.120; OKLCH L 51.3% C 0.163 H 315.8°. Best body text is #FFFFFF at 6.17:1 contrast (WCAG AA passes).

Color values

HEX#8A42A5
RGBrgb(138, 66, 165)
HSLhsl(284, 43%, 45%)
HSVhsv(284, 60%, 65%)
CMYKcmyk(16.4%, 60%, 0%, 35.3%)
CIE-LABlab(41.24, 46.74, -40.74)
CIE-LCHlch(41.24, 62.00, 318.92°)
OKLaboklab(51.34% 0.1172 -0.114)
OKLCHoklch(51.34% 0.163 315.8)
XYZxyz(19.2199, 12.0170, 36.8971)
Luminance0.1202 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A42A5 #5DA542
analogous
#5842A5 #8A42A5 #A5428F
triadic
#8A42A5 #A58A42 #42A58A
tetradic
#8A42A5 #A55842 #5DA542 #428FA5
square
#8A42A5 #A55842 #5DA542 #428FA5
split-complementary
#8A42A5 #8FA542 #42A558
monochromatic
#411F4E #653179 #8A42A5 #A763C1 #C08FD2

Accessibility & contrast

On white

6.17
#8A42A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.40
#8A42A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A42A5
6.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A42A5#FFFFFF#000000##FFFFFF
##8A42A51.006.173.406.17
#FFFFFF6.171.0021.001.00
#0000003.4021.001.0021.00
##FFFFFF6.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#265DA8
Deuteranopia (green-blind)
#4263A3
Tritanopia (blue-blind)
#88536D
Achromatopsia (no color)
#616161

Design tokens & code

CSS
--color: #8a42a5;
/* rgb */ color: rgb(138, 66, 165);
/* oklch */ color: oklch(51.3% 0.163 315.8);
Tailwind
colors: {
  custom: {
    50: '#af7ac0',
    500: '#8a42a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a42a5;
$custom-light: #af7ac0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a42a5",
  "rgb": {
    "r": 138,
    "g": 66,
    "b": 165
  },
  "hsl": {
    "h": 283.636,
    "s": 42.857,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51342,
    "c": 0.16347,
    "h": 315.8
  },
  "luminance": 0.12016
}

Semantic roles & 50–950 ramp

primary
#8A42A5
secondary
#95BD85
accent
#D35577
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A42A5

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

Preview Lab → · Contrast checker → · Palette generator →

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