#8A3DCA#8A3DCA

#8A3DCA is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.2% C 0.209 H 305.3°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A3DCA
RGBrgb(138, 61, 202)
HSLhsl(273, 57%, 52%)
HSVhsv(273, 70%, 79%)
CMYKcmyk(31.7%, 69.8%, 0%, 20.8%)
CIE-LABlab(42.77, 57.39, -60.02)
CIE-LCHlch(42.77, 83.04, 313.71°)
OKLaboklab(53.21% 0.1207 -0.1705)
OKLCHoklch(53.21% 0.209 305.3)
XYZxyz(22.8083, 13.0052, 57.1743)
Luminance0.1300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3DCA #7DCA3D
analogous
#443DCA #8A3DCA #CA3DC4
triadic
#8A3DCA #CA8A3D #3DCA8A
tetradic
#8A3DCA #CA443D #7DCA3D #3DC4CA
square
#8A3DCA #CA443D #7DCA3D #3DC4CA
split-complementary
#8A3DCA #C4CA3D #3DCA44
monochromatic
#4A1E6E #6A2B9F #8A3DCA #A76DD7 #C49DE4

Accessibility & contrast

On white

5.83
#8A3DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A3DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3DCA
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3DCA#FFFFFF#000000##FFFFFF
##8A3DCA1.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0065C7
Tritanopia (blue-blind)
#7E5D7F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3dca;
/* rgb */ color: rgb(138, 61, 202);
/* oklch */ color: oklch(53.2% 0.209 305.3);
Tailwind
colors: {
  custom: {
    50: '#b179db',
    500: '#8a3dca',
    950: '#000000',
  },
}
SCSS
$custom: #8a3dca;
$custom-light: #b179db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3dca",
  "rgb": {
    "r": 138,
    "g": 61,
    "b": 202
  },
  "hsl": {
    "h": 272.766,
    "s": 57.085,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53206,
    "c": 0.2089,
    "h": 305.3
  },
  "luminance": 0.13005
}

Semantic roles & 50–950 ramp

primary
#8A3DCA
secondary
#AFD092
accent
#E0478D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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