#8A4DC7#8A4DC7

#8A4DC7 is a mid, vivid violet. Relative luminance 0.148; OKLCH L 55.0% C 0.184 H 304.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#8A4DC7
RGBrgb(138, 77, 199)
HSLhsl(270, 52%, 54%)
HSVhsv(270, 61%, 78%)
CMYKcmyk(30.7%, 61.3%, 0%, 22%)
CIE-LABlab(45.41, 48.87, -54.03)
CIE-LCHlch(45.41, 72.86, 312.13°)
OKLaboklab(55.04% 0.1031 -0.153)
OKLCHoklch(55.04% 0.184 304)
XYZxyz(23.4416, 14.8346, 55.6502)
Luminance0.1484 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4DC7 #8AC74D
analogous
#4D4DC7 #8A4DC7 #C74DC7
triadic
#8A4DC7 #C78A4D #4DC78A
tetradic
#8A4DC7 #C74D4D #8AC74D #4DC7C7
square
#8A4DC7 #C74D4D #8AC74D #4DC7C7
split-complementary
#8A4DC7 #C7C74D #4DC74D
monochromatic
#4D2575 #6B33A3 #8A4DC7 #A97CD6 #C7AAE4

Accessibility & contrast

On white

5.29
#8A4DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#8A4DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4DC7
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4DC7#FFFFFF#000000##FFFFFF
##8A4DC71.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006ACB
Deuteranopia (green-blind)
#2E6BC4
Tritanopia (blue-blind)
#7F6683
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4dc7;
/* rgb */ color: rgb(138, 77, 199);
/* oklch */ color: oklch(55.0% 0.184 304.0);
Tailwind
colors: {
  custom: {
    50: '#b082d9',
    500: '#8a4dc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4dc7;
$custom-light: #b082d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4dc7",
  "rgb": {
    "r": 138,
    "g": 77,
    "b": 199
  },
  "hsl": {
    "h": 270,
    "s": 52.137,
    "l": 54.118
  },
  "oklch": {
    "l": 0.55038,
    "c": 0.18448,
    "h": 304
  },
  "luminance": 0.14835
}

Semantic roles & 50–950 ramp

primary
#8A4DC7
secondary
#B8D29E
accent
#DC4C94
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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