#8A45AB#8A45AB

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

Color values

HEX#8A45AB
RGBrgb(138, 69, 171)
HSLhsl(281, 43%, 47%)
HSVhsv(281, 60%, 67%)
CMYKcmyk(19.3%, 59.6%, 0%, 32.9%)
CIE-LABlab(42.15, 46.52, -42.85)
CIE-LCHlch(42.15, 63.25, 317.35°)
OKLaboklab(52.12% 0.1134 -0.1202)
OKLCHoklch(52.12% 0.165 313.3)
XYZxyz(19.9588, 12.6003, 39.9009)
Luminance0.1260 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A45AB #66AB45
analogous
#5745AB #8A45AB #AB4599
triadic
#8A45AB #AB8A45 #45AB8A
tetradic
#8A45AB #AB5745 #66AB45 #4599AB
square
#8A45AB #AB5745 #66AB45 #4599AB
split-complementary
#8A45AB #99AB45 #45AB57
monochromatic
#442254 #67337F #8A45AB #A66AC3 #C096D5

Accessibility & contrast

On white

5.97
#8A45AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#8A45AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A45AB
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A45AB#FFFFFF#000000##FFFFFF
##8A45AB1.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2460AE
Deuteranopia (green-blind)
#4065A8
Tritanopia (blue-blind)
#875771
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #8a45ab;
/* rgb */ color: rgb(138, 69, 171);
/* oklch */ color: oklch(52.1% 0.165 313.3);
Tailwind
colors: {
  custom: {
    50: '#af7cc4',
    500: '#8a45ab',
    950: '#000000',
  },
}
SCSS
$custom: #8a45ab;
$custom-light: #af7cc4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a45ab",
  "rgb": {
    "r": 138,
    "g": 69,
    "b": 171
  },
  "hsl": {
    "h": 280.588,
    "s": 42.5,
    "l": 47.059
  },
  "oklch": {
    "l": 0.52119,
    "c": 0.16524,
    "h": 313.3
  },
  "luminance": 0.126
}

Semantic roles & 50–950 ramp

primary
#8A45AB
secondary
#9DC08B
accent
#D2567E
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110A13
muted
#807C82

Preview Lab

Preview with #8A45AB

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

Preview Lab → · Contrast checker → · Palette generator →

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