#8A3CD3#8A3CD3

#8A3CD3 is a mid, highly saturated violet. Relative luminance 0.133; OKLCH L 53.8% C 0.219 H 303.2°. Best body text is #FFFFFF at 5.73:1 contrast (WCAG AA passes).

Color values

HEX#8A3CD3
RGBrgb(138, 60, 211)
HSLhsl(271, 63%, 53%)
HSVhsv(271, 72%, 83%)
CMYKcmyk(34.6%, 71.6%, 0%, 17.3%)
CIE-LABlab(43.27, 59.91, -64.41)
CIE-LCHlch(43.27, 87.97, 312.93°)
OKLaboklab(53.76% 0.1202 -0.1834)
OKLCHoklch(53.76% 0.219 303.2)
XYZxyz(23.8522, 13.3381, 62.9333)
Luminance0.1334 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3CD3 #85D33C
analogous
#3E3CD3 #8A3CD3 #D33CD1
triadic
#8A3CD3 #D38A3C #3CD38A
tetradic
#8A3CD3 #D33E3C #85D33C #3CD1D3
square
#8A3CD3 #D33E3C #85D33C #3CD1D3
split-complementary
#8A3CD3 #D1D33C #3CD33E
monochromatic
#4C1B79 #6B27AB #8A3CD3 #A86EDE #C6A0EA

Accessibility & contrast

On white

5.73
#8A3CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.67
#8A3CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3CD3
5.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3CD3#FFFFFF#000000##FFFFFF
##8A3CD31.005.733.675.73
#FFFFFF5.731.0021.001.00
#0000003.6721.001.0021.00
##FFFFFF5.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0065D7
Deuteranopia (green-blind)
#0066D0
Tritanopia (blue-blind)
#7B6184
Achromatopsia (no color)
#666666

Design tokens & code

CSS
--color: #8a3cd3;
/* rgb */ color: rgb(138, 60, 211);
/* oklch */ color: oklch(53.8% 0.219 303.2);
Tailwind
colors: {
  custom: {
    50: '#b278e1',
    500: '#8a3cd3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3cd3;
$custom-light: #b278e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3cd3",
  "rgb": {
    "r": 138,
    "g": 60,
    "b": 211
  },
  "hsl": {
    "h": 270.993,
    "s": 63.18,
    "l": 53.137
  },
  "oklch": {
    "l": 0.53765,
    "c": 0.21929,
    "h": 303.2
  },
  "luminance": 0.13338
}

Semantic roles & 50–950 ramp

primary
#8A3CD3
secondary
#B4D695
accent
#E64291
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#120915
muted
#817B83

Preview Lab

Preview with #8A3CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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