#8A45A5#8A45A5

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

Color values

HEX#8A45A5
RGBrgb(138, 69, 165)
HSLhsl(283, 41%, 46%)
HSVhsv(283, 58%, 65%)
CMYKcmyk(16.4%, 58.2%, 0%, 35.3%)
CIE-LABlab(41.81, 45.21, -39.84)
CIE-LCHlch(41.81, 60.26, 318.61°)
OKLaboklab(51.75% 0.1132 -0.1114)
OKLCHoklch(51.75% 0.159 315.5)
XYZxyz(19.3998, 12.3768, 36.9570)
Luminance0.1238 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45A5 #60A545
analogous
#5A45A5 #8A45A5 #A54590
triadic
#8A45A5 #A58A45 #45A58A
tetradic
#8A45A5 #A55A45 #60A545 #4590A5
square
#8A45A5 #A55A45 #60A545 #4590A5
split-complementary
#8A45A5 #90A545 #45A55A
monochromatic
#42214F #66337A #8A45A5 #A768C0 #C093D2

Accessibility & contrast

On white

6.04
#8A45A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A45A5
6.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45A5#FFFFFF#000000##FFFFFF
##8A45A51.006.043.486.04
#FFFFFF6.041.0021.001.00
#0000003.4821.001.0021.00
##FFFFFF6.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B5FA8
Deuteranopia (green-blind)
#4565A3
Tritanopia (blue-blind)
#88556E
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a45a5;
/* rgb */ color: rgb(138, 69, 165);
/* oklch */ color: oklch(51.8% 0.159 315.5);
Tailwind
colors: {
  custom: {
    50: '#af7cc0',
    500: '#8a45a5',
    950: '#000000',
  },
}
SCSS
$custom: #8a45a5;
$custom-light: #af7cc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45a5",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 165
  },
  "hsl": {
    "h": 283.125,
    "s": 41.026,
    "l": 45.882
  },
  "oklch": {
    "l": 0.51754,
    "c": 0.15881,
    "h": 315.5
  },
  "luminance": 0.12376
}

Semantic roles & 50–950 ramp

primary
#8A45A5
secondary
#97BD88
accent
#D15779
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A45A5

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

Preview Lab → · Contrast checker → · Palette generator →

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