#8A45A6#8A45A6

#8A45A6 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 51.8% C 0.160 H 315.1°. Best body text is #FFFFFF at 6.03:1 contrast (WCAG AA passes).

Color values

HEX#8A45A6
RGBrgb(138, 69, 166)
HSLhsl(283, 41%, 46%)
HSVhsv(283, 58%, 65%)
CMYKcmyk(16.9%, 58.4%, 0%, 34.9%)
CIE-LABlab(41.87, 45.43, -40.35)
CIE-LCHlch(41.87, 60.76, 318.39°)
OKLaboklab(51.81% 0.1132 -0.1129)
OKLCHoklch(51.81% 0.16 315.1)
XYZxyz(19.4912, 12.4133, 37.4383)
Luminance0.1241 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45A6 #61A645
analogous
#5945A6 #8A45A6 #A64591
triadic
#8A45A6 #A68A45 #45A68A
tetradic
#8A45A6 #A65945 #61A645 #4591A6
square
#8A45A6 #A65945 #61A645 #4591A6
split-complementary
#8A45A6 #91A645 #45A659
monochromatic
#422150 #66337B #8A45A6 #A768C0 #C093D2

Accessibility & contrast

On white

6.03
#8A45A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.48
#8A45A6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45A6
6.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45A6#FFFFFF#000000##FFFFFF
##8A45A61.006.033.486.03
#FFFFFF6.031.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A5FA9
Deuteranopia (green-blind)
#4465A4
Tritanopia (blue-blind)
#88556F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a45a6;
/* rgb */ color: rgb(138, 69, 166);
/* oklch */ color: oklch(51.8% 0.160 315.1);
Tailwind
colors: {
  custom: {
    50: '#af7cc1',
    500: '#8a45a6',
    950: '#000000',
  },
}
SCSS
$custom: #8a45a6;
$custom-light: #af7cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45a6",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 166
  },
  "hsl": {
    "h": 282.68,
    "s": 41.277,
    "l": 46.078
  },
  "oklch": {
    "l": 0.51814,
    "c": 0.15988,
    "h": 315.1
  },
  "luminance": 0.12413
}

Semantic roles & 50–950 ramp

primary
#8A45A6
secondary
#98BE89
accent
#D1577A
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A45A6

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

Preview Lab → · Contrast checker → · Palette generator →

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