#8A45A4#8A45A4

#8A45A4 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.7% C 0.158 H 315.8°. Best body text is #FFFFFF at 6.06:1 contrast (WCAG AA passes).

Color values

HEX#8A45A4
RGBrgb(138, 69, 164)
HSLhsl(284, 41%, 46%)
HSVhsv(284, 58%, 64%)
CMYKcmyk(15.9%, 57.9%, 0%, 35.7%)
CIE-LABlab(41.75, 45.00, -39.34)
CIE-LCHlch(41.75, 59.77, 318.84°)
OKLaboklab(51.7% 0.1132 -0.1099)
OKLCHoklch(51.7% 0.158 315.8)
XYZxyz(19.3092, 12.3405, 36.4796)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45A4 #5FA445
analogous
#5A45A4 #8A45A4 #A4458E
triadic
#8A45A4 #A48A45 #45A48A
tetradic
#8A45A4 #A45A45 #5FA445 #458EA4
square
#8A45A4 #A45A45 #5FA445 #458EA4
split-complementary
#8A45A4 #8EA445 #45A45A
monochromatic
#42214E #663379 #8A45A4 #A767BF #C092D1

Accessibility & contrast

On white

6.06
#8A45A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#8A45A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45A4
6.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45A4#FFFFFF#000000##FFFFFF
##8A45A41.006.063.476.06
#FFFFFF6.061.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C5EA7
Deuteranopia (green-blind)
#4565A2
Tritanopia (blue-blind)
#88556E
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a45a4;
/* rgb */ color: rgb(138, 69, 164);
/* oklch */ color: oklch(51.7% 0.158 315.8);
Tailwind
colors: {
  custom: {
    50: '#af7cbf',
    500: '#8a45a4',
    950: '#000000',
  },
}
SCSS
$custom: #8a45a4;
$custom-light: #af7cbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45a4",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 164
  },
  "hsl": {
    "h": 283.579,
    "s": 40.773,
    "l": 45.686
  },
  "oklch": {
    "l": 0.51695,
    "c": 0.15775,
    "h": 315.8
  },
  "luminance": 0.1234
}

Semantic roles & 50–950 ramp

primary
#8A45A4
secondary
#96BD88
accent
#D15778
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A45A4

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

Preview Lab → · Contrast checker → · Palette generator →

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