#8A45AA#8A45AA

#8A45AA is a mid, vivid purple. Relative luminance 0.126; OKLCH L 52.1% C 0.164 H 313.7°. Best body text is #FFFFFF at 5.98:1 contrast (WCAG AA passes).

Color values

HEX#8A45AA
RGBrgb(138, 69, 170)
HSLhsl(281, 42%, 47%)
HSVhsv(281, 59%, 67%)
CMYKcmyk(18.8%, 59.4%, 0%, 33.3%)
CIE-LABlab(42.10, 46.30, -42.35)
CIE-LCHlch(42.10, 62.75, 317.55°)
OKLaboklab(52.06% 0.1134 -0.1187)
OKLCHoklch(52.06% 0.164 313.7)
XYZxyz(19.8638, 12.5624, 39.4008)
Luminance0.1256 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45AA #65AA45
analogous
#5845AA #8A45AA #AA4598
triadic
#8A45AA #AA8A45 #45AA8A
tetradic
#8A45AA #AA5845 #65AA45 #4598AA
square
#8A45AA #AA5845 #65AA45 #4598AA
split-complementary
#8A45AA #98AA45 #45AA58
monochromatic
#432253 #67337E #8A45AA #A66AC2 #C095D4

Accessibility & contrast

On white

5.98
#8A45AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.51
#8A45AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45AA
5.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45AA#FFFFFF#000000##FFFFFF
##8A45AA1.005.983.515.98
#FFFFFF5.981.0021.001.00
#0000003.5121.001.0021.00
##FFFFFF5.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2660AD
Deuteranopia (green-blind)
#4165A8
Tritanopia (blue-blind)
#875771
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a45aa;
/* rgb */ color: rgb(138, 69, 170);
/* oklch */ color: oklch(52.1% 0.164 313.7);
Tailwind
colors: {
  custom: {
    50: '#af7cc4',
    500: '#8a45aa',
    950: '#000000',
  },
}
SCSS
$custom: #8a45aa;
$custom-light: #af7cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45aa",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 170
  },
  "hsl": {
    "h": 280.99,
    "s": 42.259,
    "l": 46.863
  },
  "oklch": {
    "l": 0.52057,
    "c": 0.16417,
    "h": 313.7
  },
  "luminance": 0.12562
}

Semantic roles & 50–950 ramp

primary
#8A45AA
secondary
#9CC08B
accent
#D2567D
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45AA

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

Preview Lab → · Contrast checker → · Palette generator →

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