#8A4CDA#8A4CDA

#8A4CDA is a mid, highly saturated violet. Relative luminance 0.156; OKLCH L 56.2% C 0.207 H 299.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#8A4CDA
RGBrgb(138, 76, 218)
HSLhsl(266, 66%, 58%)
HSVhsv(266, 65%, 85%)
CMYKcmyk(36.7%, 65.1%, 0%, 14.5%)
CIE-LABlab(46.49, 54.04, -63.19)
CIE-LCHlch(46.49, 83.15, 310.53°)
OKLaboklab(56.23% 0.1029 -0.1799)
OKLCHoklch(56.23% 0.207 299.8)
XYZxyz(25.7174, 15.6339, 67.9788)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A4CDA #9CDA4C
analogous
#4C55DA #8A4CDA #D14CDA
triadic
#8A4CDA #DA8A4C #4CDA8A
tetradic
#8A4CDA #DA4C55 #9CDA4C #4CDAD1
square
#8A4CDA #DA4C55 #9CDA4C #4CDAD1
split-complementary
#8A4CDA #DAD14C #55DA4C
monochromatic
#4F1D8E #6B28C1 #8A4CDA #AB7FE4 #CCB1EF

Accessibility & contrast

On white

5.09
#8A4CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#8A4CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A4CDA
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A4CDA#FFFFFF#000000##FFFFFF
##8A4CDA1.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#006EDE
Deuteranopia (green-blind)
#006DD7
Tritanopia (blue-blind)
#786C8C
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #8a4cda;
/* rgb */ color: rgb(138, 76, 218);
/* oklch */ color: oklch(56.2% 0.207 299.8);
Tailwind
colors: {
  custom: {
    50: '#b282e6',
    500: '#8a4cda',
    950: '#000000',
  },
}
SCSS
$custom: #8a4cda;
$custom-light: #b282e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a4cda",
  "rgb": {
    "r": 138,
    "g": 76,
    "b": 218
  },
  "hsl": {
    "h": 266.197,
    "s": 65.741,
    "l": 57.647
  },
  "oklch": {
    "l": 0.56226,
    "c": 0.20724,
    "h": 299.8
  },
  "luminance": 0.15634
}

Semantic roles & 50–950 ramp

primary
#8A4CDA
secondary
#C5DDA4
accent
#E93F9F
background
#FBF8FE
surface
#F6EFFC
border
#D0CAD5
text
#110B16
muted
#807C84

Preview Lab

Preview with #8A4CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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