#8A45A8#8A45A8

#8A45A8 is a mid, vivid purple. Relative luminance 0.125; OKLCH L 51.9% C 0.162 H 314.4°. Best body text is #FFFFFF at 6.00:1 contrast (WCAG AA passes).

Color values

HEX#8A45A8
RGBrgb(138, 69, 168)
HSLhsl(282, 42%, 46%)
HSVhsv(282, 59%, 66%)
CMYKcmyk(17.9%, 58.9%, 0%, 34.1%)
CIE-LABlab(41.98, 45.87, -41.35)
CIE-LCHlch(41.98, 61.76, 317.96°)
OKLaboklab(51.93% 0.1133 -0.1158)
OKLCHoklch(51.93% 0.162 314.4)
XYZxyz(19.6761, 12.4873, 38.4120)
Luminance0.1249 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45A8 #63A845
analogous
#5945A8 #8A45A8 #A84595
triadic
#8A45A8 #A88A45 #45A88A
tetradic
#8A45A8 #A85945 #63A845 #4595A8
square
#8A45A8 #A85945 #63A845 #4595A8
split-complementary
#8A45A8 #95A845 #45A859
monochromatic
#432151 #66337D #8A45A8 #A769C1 #C094D3

Accessibility & contrast

On white

6.00
#8A45A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.50
#8A45A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45A8
6.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45A8#FFFFFF#000000##FFFFFF
##8A45A81.006.003.506.00
#FFFFFF6.001.0021.001.00
#0000003.5021.001.0021.00
##FFFFFF6.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#285FAB
Deuteranopia (green-blind)
#4365A6
Tritanopia (blue-blind)
#885670
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a45a8;
/* rgb */ color: rgb(138, 69, 168);
/* oklch */ color: oklch(51.9% 0.162 314.4);
Tailwind
colors: {
  custom: {
    50: '#af7cc2',
    500: '#8a45a8',
    950: '#000000',
  },
}
SCSS
$custom: #8a45a8;
$custom-light: #af7cc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45a8",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 168
  },
  "hsl": {
    "h": 281.818,
    "s": 41.772,
    "l": 46.471
  },
  "oklch": {
    "l": 0.51935,
    "c": 0.16202,
    "h": 314.4
  },
  "luminance": 0.12487
}

Semantic roles & 50–950 ramp

primary
#8A45A8
secondary
#9ABF8A
accent
#D2567C
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A45A8

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

Preview Lab → · Contrast checker → · Palette generator →

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