#8A45A2#8A45A2

#8A45A2 is a mid, vivid purple. Relative luminance 0.123; OKLCH L 51.6% C 0.156 H 316.6°. Best body text is #FFFFFF at 6.08:1 contrast (WCAG AA passes).

Color values

HEX#8A45A2
RGBrgb(138, 69, 162)
HSLhsl(285, 40%, 45%)
HSVhsv(285, 57%, 64%)
CMYKcmyk(14.8%, 57.4%, 0%, 36.5%)
CIE-LABlab(41.64, 44.57, -38.32)
CIE-LCHlch(41.64, 58.78, 319.31°)
OKLaboklab(51.58% 0.113 -0.107)
OKLCHoklch(51.58% 0.156 316.6)
XYZxyz(19.1300, 12.2688, 35.5358)
Luminance0.1227 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45A2 #5DA245
analogous
#5B45A2 #8A45A2 #A2458B
triadic
#8A45A2 #A28A45 #45A28A
tetradic
#8A45A2 #A25B45 #5DA245 #458BA2
square
#8A45A2 #A25B45 #5DA245 #458BA2
split-complementary
#8A45A2 #8BA245 #45A25B
monochromatic
#41204C #653377 #8A45A2 #A766BE #C091D0

Accessibility & contrast

On white

6.08
#8A45A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.45
#8A45A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45A2
6.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45A2#FFFFFF#000000##FFFFFF
##8A45A21.006.083.456.08
#FFFFFF6.081.0021.001.00
#0000003.4521.001.0021.00
##FFFFFF6.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E5EA5
Deuteranopia (green-blind)
#4764A0
Tritanopia (blue-blind)
#89546D
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #8a45a2;
/* rgb */ color: rgb(138, 69, 162);
/* oklch */ color: oklch(51.6% 0.156 316.6);
Tailwind
colors: {
  custom: {
    50: '#ae7cbe',
    500: '#8a45a2',
    950: '#000000',
  },
}
SCSS
$custom: #8a45a2;
$custom-light: #ae7cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45a2",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 162
  },
  "hsl": {
    "h": 284.516,
    "s": 40.26,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51576,
    "c": 0.15562,
    "h": 316.6
  },
  "luminance": 0.12268
}

Semantic roles & 50–950 ramp

primary
#8A45A2
secondary
#95BC87
accent
#D05877
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A45A2

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

Preview Lab → · Contrast checker → · Palette generator →

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