#8A3CDC#8A3CDC

#8A3CDC is a mid, highly saturated violet. Relative luminance 0.138; OKLCH L 54.5% C 0.228 H 301.2°. Best body text is #FFFFFF at 5.58:1 contrast (WCAG AA passes).

Color values

HEX#8A3CDC
RGBrgb(138, 60, 220)
HSLhsl(269, 70%, 55%)
HSVhsv(269, 73%, 86%)
CMYKcmyk(37.3%, 72.7%, 0%, 13.7%)
CIE-LABlab(43.95, 62.02, -68.47)
CIE-LCHlch(43.95, 92.38, 312.17°)
OKLaboklab(54.46% 0.1185 -0.1953)
OKLCHoklch(54.46% 0.228 301.2)
XYZxyz(25.0122, 13.8021, 69.0426)
Luminance0.1380 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CDC #8EDC3C
analogous
#3C3EDC #8A3CDC #DA3CDC
triadic
#8A3CDC #DC8A3C #3CDC8A
tetradic
#8A3CDC #DC3C3E #8EDC3C #3CDCDA
square
#8A3CDC #DC3C3E #8EDC3C #3CDCDA
split-complementary
#8A3CDC #DCDA3C #3EDC3C
monochromatic
#4D1886 #6B21BA #8A3CDC #A970E5 #C8A4EF

Accessibility & contrast

On white

5.58
#8A3CDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.76
#8A3CDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CDC
5.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CDC#FFFFFF#000000##FFFFFF
##8A3CDC1.005.583.765.58
#FFFFFF5.581.0021.001.00
#0000003.7621.001.0021.00
##FFFFFF5.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0067E1
Deuteranopia (green-blind)
#0067D9
Tritanopia (blue-blind)
#786489
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3cdc;
/* rgb */ color: rgb(138, 60, 220);
/* oklch */ color: oklch(54.5% 0.228 301.2);
Tailwind
colors: {
  custom: {
    50: '#b379e8',
    500: '#8a3cdc',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cdc;
$custom-light: #b379e8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cdc",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 220
  },
  "hsl": {
    "h": 269.25,
    "s": 69.565,
    "l": 54.902
  },
  "oklch": {
    "l": 0.54458,
    "c": 0.22845,
    "h": 301.2
  },
  "luminance": 0.13802
}

Semantic roles & 50–950 ramp

primary
#8A3CDC
secondary
#BBDC98
accent
#EC3B96
background
#FBF7FE
surface
#F6EEFD
border
#D0C9D5
text
#120916
muted
#817B84

Preview Lab

Preview with #8A3CDC

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

Preview Lab → · Contrast checker → · Palette generator →

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