#8A4DA7#8A4DA7

#8A4DA7 is a mid, vivid purple. Relative luminance 0.135; OKLCH L 53.0% C 0.148 H 313.7°. Best body text is #FFFFFF at 5.68:1 contrast (WCAG AA passes).

Color values

HEX#8A4DA7
RGBrgb(138, 77, 167)
HSLhsl(281, 37%, 48%)
HSVhsv(281, 54%, 65%)
CMYKcmyk(17.4%, 53.9%, 0%, 34.5%)
CIE-LABlab(43.51, 41.43, -38.33)
CIE-LCHlch(43.51, 56.44, 317.22°)
OKLaboklab(53.04% 0.1024 -0.107)
OKLCHoklch(53.04% 0.148 313.7)
XYZxyz(20.1090, 13.5016, 38.0985)
Luminance0.1350 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DA7 #6AA74D
analogous
#5D4DA7 #8A4DA7 #A74D97
triadic
#8A4DA7 #A78A4D #4DA78A
tetradic
#8A4DA7 #A75D4D #6AA74D #4D97A7
square
#8A4DA7 #A75D4D #6AA74D #4D97A7
split-complementary
#8A4DA7 #97A74D #4DA75D
monochromatic
#452653 #673A7D #8A4DA7 #A673BE #C19DD2

Accessibility & contrast

On white

5.68
#8A4DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.70
#8A4DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DA7
5.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DA7#FFFFFF#000000##FFFFFF
##8A4DA71.005.683.705.68
#FFFFFF5.681.0021.001.00
#0000003.7021.001.0021.00
##FFFFFF5.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3763AA
Deuteranopia (green-blind)
#4A68A5
Tritanopia (blue-blind)
#885C73
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a4da7;
/* rgb */ color: rgb(138, 77, 167);
/* oklch */ color: oklch(53.0% 0.148 313.7);
Tailwind
colors: {
  custom: {
    50: '#ae81c1',
    500: '#8a4da7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4da7;
$custom-light: #ae81c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4da7",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 167
  },
  "hsl": {
    "h": 280.667,
    "s": 36.885,
    "l": 47.843
  },
  "oklch": {
    "l": 0.53039,
    "c": 0.14813,
    "h": 313.7
  },
  "luminance": 0.13501
}

Semantic roles & 50–950 ramp

primary
#8A4DA7
secondary
#A0BE91
accent
#CD5B80
background
#FAF8FB
surface
#F5EFF7
border
#CFCAD0
text
#110A12
muted
#807C81

Preview Lab

Preview with #8A4DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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