#8A3CD1#8A3CD1

#8A3CD1 is a mid, highly saturated violet. Relative luminance 0.132; OKLCH L 53.6% C 0.217 H 303.7°. Best body text is #FFFFFF at 5.76:1 contrast (WCAG AA passes).

Color values

HEX#8A3CD1
RGBrgb(138, 60, 209)
HSLhsl(271, 62%, 53%)
HSVhsv(271, 71%, 82%)
CMYKcmyk(34%, 71.3%, 0%, 18%)
CIE-LABlab(43.12, 59.45, -63.50)
CIE-LCHlch(43.12, 86.98, 313.11°)
OKLaboklab(53.61% 0.1206 -0.1807)
OKLCHoklch(53.61% 0.217 303.7)
XYZxyz(23.6031, 13.2385, 61.6211)
Luminance0.1324 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CD1 #83D13C
analogous
#3F3CD1 #8A3CD1 #D13CCE
triadic
#8A3CD1 #D18A3C #3CD18A
tetradic
#8A3CD1 #D13F3C #83D13C #3CCED1
square
#8A3CD1 #D13F3C #83D13C #3CCED1
split-complementary
#8A3CD1 #CED13C #3CD13F
monochromatic
#4B1C77 #6B28A8 #8A3CD1 #A86EDD #C59FE8

Accessibility & contrast

On white

5.76
#8A3CD1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.65
#8A3CD1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CD1
5.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CD1#FFFFFF#000000##FFFFFF
##8A3CD11.005.763.655.76
#FFFFFF5.761.0021.001.00
#0000003.6521.001.0021.00
##FFFFFF5.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064D5
Deuteranopia (green-blind)
#0066CE
Tritanopia (blue-blind)
#7C6083
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a3cd1;
/* rgb */ color: rgb(138, 60, 209);
/* oklch */ color: oklch(53.6% 0.217 303.7);
Tailwind
colors: {
  custom: {
    50: '#b278e0',
    500: '#8a3cd1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cd1;
$custom-light: #b278e0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cd1",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 209
  },
  "hsl": {
    "h": 271.409,
    "s": 61.826,
    "l": 52.745
  },
  "oklch": {
    "l": 0.53614,
    "c": 0.21726,
    "h": 303.7
  },
  "luminance": 0.13238
}

Semantic roles & 50–950 ramp

primary
#8A3CD1
secondary
#B3D594
accent
#E54390
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3CD1

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

Preview Lab → · Contrast checker → · Palette generator →

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