#8A4E9C#8A4E9C

#8A4E9C is a mid, vivid purple. Relative luminance 0.133; OKLCH L 52.6% C 0.134 H 318.0°. Best body text is #FFFFFF at 5.75:1 contrast (WCAG AA passes).

Color values

HEX#8A4E9C
RGBrgb(138, 78, 156)
HSLhsl(286, 33%, 46%)
HSVhsv(286, 50%, 61%)
CMYKcmyk(11.5%, 50%, 0%, 38.8%)
CIE-LABlab(43.14, 38.48, -32.36)
CIE-LCHlch(43.14, 50.28, 319.94°)
OKLaboklab(52.58% 0.0997 -0.0897)
OKLCHoklch(52.58% 0.134 318)
XYZxyz(19.2055, 13.2530, 32.9924)
Luminance0.1325 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4E9C #609C4E
analogous
#634E9C #8A4E9C #9C4E87
triadic
#8A4E9C #9C8A4E #4E9C8A
tetradic
#8A4E9C #9C634E #609C4E #4E879C
square
#8A4E9C #9C634E #609C4E #4E879C
split-complementary
#8A4E9C #879C4E #4E9C63
monochromatic
#42254A #663A73 #8A4E9C #A770B7 #C099CC

Accessibility & contrast

On white

5.75
#8A4E9C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A4E9C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4E9C
5.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4E9C#FFFFFF#000000##FFFFFF
##8A4E9C1.005.753.655.75
#FFFFFF5.751.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#40629F
Deuteranopia (green-blind)
#51689A
Tritanopia (blue-blind)
#8A596E
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4e9c;
/* rgb */ color: rgb(138, 78, 156);
/* oklch */ color: oklch(52.6% 0.134 318.0);
Tailwind
colors: {
  custom: {
    50: '#ae82b9',
    500: '#8a4e9c',
    950: '#000000',
  },
}
SCSS
$custom: #8a4e9c;
$custom-light: #ae82b9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4e9c",
  "rgb": {
    "r": 138,
    "g": 78,
    "b": 156
  },
  "hsl": {
    "h": 286.154,
    "s": 33.333,
    "l": 45.882
  },
  "oklch": {
    "l": 0.5258,
    "c": 0.13415,
    "h": 318
  },
  "luminance": 0.13252
}

Semantic roles & 50–950 ramp

primary
#8A4E9C
secondary
#97B88D
accent
#C95E77
background
#FAF8FB
surface
#F5EFF6
border
#CFCAD0
text
#100A11
muted
#7F7C80

Preview Lab

Preview with #8A4E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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