#8A4CC7#8A4CC7

#8A4CC7 is a mid, vivid violet. Relative luminance 0.147; OKLCH L 54.9% C 0.186 H 304.1°. Best body text is #FFFFFF at 5.33:1 contrast (WCAG AA passes).

Color values

HEX#8A4CC7
RGBrgb(138, 76, 199)
HSLhsl(270, 52%, 54%)
HSVhsv(270, 62%, 78%)
CMYKcmyk(30.7%, 61.8%, 0%, 22%)
CIE-LABlab(45.21, 49.39, -54.34)
CIE-LCHlch(45.21, 73.43, 312.27°)
OKLaboklab(54.9% 0.1043 -0.1539)
OKLCHoklch(54.9% 0.186 304.1)
XYZxyz(23.3722, 14.6958, 55.6270)
Luminance0.1470 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CC7 #89C74C
analogous
#4D4CC7 #8A4CC7 #C74CC6
triadic
#8A4CC7 #C78A4C #4CC78A
tetradic
#8A4CC7 #C74D4C #89C74C #4CC6C7
square
#8A4CC7 #C74D4C #89C74C #4CC6C7
split-complementary
#8A4CC7 #C6C74C #4CC74D
monochromatic
#4D2474 #6B33A3 #8A4CC7 #A87BD6 #C7A9E4

Accessibility & contrast

On white

5.33
#8A4CC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#8A4CC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CC7
5.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CC7#FFFFFF#000000##FFFFFF
##8A4CC71.005.333.945.33
#FFFFFF5.331.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CB
Deuteranopia (green-blind)
#2C6BC4
Tritanopia (blue-blind)
#7F6682
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #8a4cc7;
/* rgb */ color: rgb(138, 76, 199);
/* oklch */ color: oklch(54.9% 0.186 304.1);
Tailwind
colors: {
  custom: {
    50: '#b081d9',
    500: '#8a4cc7',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cc7;
$custom-light: #b081d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cc7",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 199
  },
  "hsl": {
    "h": 270.244,
    "s": 52.34,
    "l": 53.922
  },
  "oklch": {
    "l": 0.54898,
    "c": 0.1859,
    "h": 304.1
  },
  "luminance": 0.14696
}

Semantic roles & 50–950 ramp

primary
#8A4CC7
secondary
#B7D29D
accent
#DC4C93
background
#FBF8FD
surface
#F6EFFA
border
#D0CAD3
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CC7

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

Preview Lab → · Contrast checker → · Palette generator →

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