#8A45A7#8A45A7

#8A45A7 is a mid, vivid purple. Relative luminance 0.124; OKLCH L 51.9% C 0.161 H 314.7°. Best body text is #FFFFFF at 6.02:1 contrast (WCAG AA passes).

Color values

HEX#8A45A7
RGBrgb(138, 69, 167)
HSLhsl(282, 42%, 46%)
HSVhsv(282, 59%, 65%)
CMYKcmyk(17.4%, 58.7%, 0%, 34.5%)
CIE-LABlab(41.92, 45.65, -40.85)
CIE-LCHlch(41.92, 61.26, 318.18°)
OKLaboklab(51.88% 0.1133 -0.1143)
OKLCHoklch(51.88% 0.161 314.7)
XYZxyz(19.5833, 12.4501, 37.9232)
Luminance0.1245 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45A7 #62A745
analogous
#5945A7 #8A45A7 #A74593
triadic
#8A45A7 #A78A45 #45A78A
tetradic
#8A45A7 #A75945 #62A745 #4593A7
square
#8A45A7 #A75945 #62A745 #4593A7
split-complementary
#8A45A7 #93A745 #45A759
monochromatic
#422150 #66337C #8A45A7 #A768C1 #C094D3

Accessibility & contrast

On white

6.02
#8A45A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.49
#8A45A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45A7
6.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45A7#FFFFFF#000000##FFFFFF
##8A45A71.006.023.496.02
#FFFFFF6.021.0021.001.00
#0000003.4921.001.0021.00
##FFFFFF6.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#295FAA
Deuteranopia (green-blind)
#4365A5
Tritanopia (blue-blind)
#88566F
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a45a7;
/* rgb */ color: rgb(138, 69, 167);
/* oklch */ color: oklch(51.9% 0.161 314.7);
Tailwind
colors: {
  custom: {
    50: '#af7cc1',
    500: '#8a45a7',
    950: '#000000',
  },
}
SCSS
$custom: #8a45a7;
$custom-light: #af7cc1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45a7",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 167
  },
  "hsl": {
    "h": 282.245,
    "s": 41.525,
    "l": 46.275
  },
  "oklch": {
    "l": 0.51875,
    "c": 0.16095,
    "h": 314.7
  },
  "luminance": 0.1245
}

Semantic roles & 50–950 ramp

primary
#8A45A7
secondary
#99BE89
accent
#D1567B
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A45A7

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

Preview Lab → · Contrast checker → · Palette generator →

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