#8A4CCC#8A4CCC

#8A4CCC is a mid, vivid violet. Relative luminance 0.149; OKLCH L 55.2% C 0.192 H 302.9°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#8A4CCC
RGBrgb(138, 76, 204)
HSLhsl(269, 56%, 55%)
HSVhsv(269, 63%, 80%)
CMYKcmyk(32.4%, 62.7%, 0%, 20%)
CIE-LABlab(45.54, 50.60, -56.70)
CIE-LCHlch(45.54, 76.00, 311.75°)
OKLaboklab(55.24% 0.104 -0.1608)
OKLCHoklch(55.24% 0.192 302.9)
XYZxyz(23.9622, 14.9318, 58.7348)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CCC #8ECC4C
analogous
#4C4ECC #8A4CCC #CA4CCC
triadic
#8A4CCC #CC8A4C #4CCC8A
tetradic
#8A4CCC #CC4C4E #8ECC4C #4CCCCA
square
#8A4CCC #CC4C4E #8ECC4C #4CCCCA
split-complementary
#8A4CCC #CCCA4C #4ECC4C
monochromatic
#4D237B #6B31AA #8A4CCC #A97CDA #C8ABE7

Accessibility & contrast

On white

5.27
#8A4CCC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#8A4CCC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CCC
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CCC#FFFFFF#000000##FFFFFF
##8A4CCC1.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006BD0
Deuteranopia (green-blind)
#246BC9
Tritanopia (blue-blind)
#7D6785
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #8a4ccc;
/* rgb */ color: rgb(138, 76, 204);
/* oklch */ color: oklch(55.2% 0.192 302.9);
Tailwind
colors: {
  custom: {
    50: '#b081dc',
    500: '#8a4ccc',
    950: '#000000',
  },
}
SCSS
$custom: #8a4ccc;
$custom-light: #b081dc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4ccc",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 204
  },
  "hsl": {
    "h": 269.063,
    "s": 55.652,
    "l": 54.902
  },
  "oklch": {
    "l": 0.55239,
    "c": 0.19154,
    "h": 302.9
  },
  "luminance": 0.14932
}

Semantic roles & 50–950 ramp

primary
#8A4CCC
secondary
#BBD59F
accent
#DF4996
background
#FBF8FD
surface
#F6EFFB
border
#D0CAD4
text
#110B15
muted
#807C83

Preview Lab

Preview with #8A4CCC

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

Preview Lab → · Contrast checker → · Palette generator →

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