#8A4CA2#8A4CA2

#8A4CA2 is a mid, vivid purple. Relative luminance 0.132; OKLCH L 52.6% C 0.144 H 315.8°. Best body text is #FFFFFF at 5.78:1 contrast (WCAG AA passes).

Color values

HEX#8A4CA2
RGBrgb(138, 76, 162)
HSLhsl(283, 36%, 47%)
HSVhsv(283, 53%, 64%)
CMYKcmyk(14.8%, 53.1%, 0%, 36.5%)
CIE-LABlab(43.04, 40.87, -36.11)
CIE-LCHlch(43.04, 54.54, 318.54°)
OKLaboklab(52.6% 0.1033 -0.1006)
OKLCHoklch(52.6% 0.144 315.8)
XYZxyz(19.5863, 13.1814, 35.6879)
Luminance0.1318 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CA2 #64A24C
analogous
#5F4CA2 #8A4CA2 #A24C8F
triadic
#8A4CA2 #A28A4C #4CA28A
tetradic
#8A4CA2 #A25F4C #64A24C #4C8FA2
square
#8A4CA2 #A25F4C #64A24C #4C8FA2
split-complementary
#8A4CA2 #8FA24C #4CA25F
monochromatic
#43254F #673878 #8A4CA2 #A670BC #C099CF

Accessibility & contrast

On white

5.78
#8A4CA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.64
#8A4CA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CA2
5.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CA2#FFFFFF#000000##FFFFFF
##8A4CA21.005.783.645.78
#FFFFFF5.781.0021.001.00
#0000003.6421.001.0021.00
##FFFFFF5.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3962A5
Deuteranopia (green-blind)
#4C67A0
Tritanopia (blue-blind)
#895970
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a4ca2;
/* rgb */ color: rgb(138, 76, 162);
/* oklch */ color: oklch(52.6% 0.144 315.8);
Tailwind
colors: {
  custom: {
    50: '#ae80be',
    500: '#8a4ca2',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ca2;
$custom-light: #ae80be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ca2",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 162
  },
  "hsl": {
    "h": 283.256,
    "s": 36.134,
    "l": 46.667
  },
  "oklch": {
    "l": 0.52602,
    "c": 0.1442,
    "h": 315.8
  },
  "luminance": 0.13181
}

Semantic roles & 50–950 ramp

primary
#8A4CA2
secondary
#9BBC8E
accent
#CC5C7B
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4CA2

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

Preview Lab → · Contrast checker → · Palette generator →

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