#8A3CDA#8A3CDA

#8A3CDA is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.3% C 0.226 H 301.7°. Best body text is #FFFFFF at 5.62:1 contrast (WCAG AA passes).

Color values

HEX#8A3CDA
RGBrgb(138, 60, 218)
HSLhsl(270, 68%, 55%)
HSVhsv(270, 72%, 85%)
CMYKcmyk(36.7%, 72.5%, 0%, 14.5%)
CIE-LABlab(43.79, 61.55, -67.57)
CIE-LCHlch(43.79, 91.40, 312.33°)
OKLaboklab(54.3% 0.1189 -0.1927)
OKLCHoklch(54.3% 0.226 301.7)
XYZxyz(24.7489, 13.6968, 67.6560)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CDA #8CDA3C
analogous
#3C3DDA #8A3CDA #D93CDA
triadic
#8A3CDA #DA8A3C #3CDA8A
tetradic
#8A3CDA #DA3C3D #8CDA3C #3CDAD9
square
#8A3CDA #DA3C3D #8CDA3C #3CDAD9
split-complementary
#8A3CDA #DAD93C #3DDA3C
monochromatic
#4D1983 #6B23B6 #8A3CDA #A96FE4 #C8A3EE

Accessibility & contrast

On white

5.62
#8A3CDA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A3CDA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CDA
5.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CDA#FFFFFF#000000##FFFFFF
##8A3CDA1.005.623.745.62
#FFFFFF5.621.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DF
Deuteranopia (green-blind)
#0067D7
Tritanopia (blue-blind)
#796388
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a3cda;
/* rgb */ color: rgb(138, 60, 218);
/* oklch */ color: oklch(54.3% 0.226 301.7);
Tailwind
colors: {
  custom: {
    50: '#b379e6',
    500: '#8a3cda',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cda;
$custom-light: #b379e6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cda",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 218
  },
  "hsl": {
    "h": 269.62,
    "s": 68.103,
    "l": 54.51
  },
  "oklch": {
    "l": 0.54303,
    "c": 0.22642,
    "h": 301.7
  },
  "luminance": 0.13697
}

Semantic roles & 50–950 ramp

primary
#8A3CDA
secondary
#B9DA97
accent
#EB3D95
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3CDA

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

Preview Lab → · Contrast checker → · Palette generator →

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