#8A3ED3#8A3ED3

#8A3ED3 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.0% C 0.217 H 303.0°. Best body text is #FFFFFF at 5.66:1 contrast (WCAG AA passes).

Color values

HEX#8A3ED3
RGBrgb(138, 62, 211)
HSLhsl(271, 63%, 54%)
HSVhsv(271, 71%, 83%)
CMYKcmyk(34.6%, 70.6%, 0%, 17.3%)
CIE-LABlab(43.58, 59.03, -63.90)
CIE-LCHlch(43.58, 86.99, 312.73°)
OKLaboklab(53.99% 0.1183 -0.1819)
OKLCHoklch(53.99% 0.217 303)
XYZxyz(23.9590, 13.5517, 62.9689)
Luminance0.1355 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ED3 #87D33E
analogous
#3F3ED3 #8A3ED3 #D33ED1
triadic
#8A3ED3 #D38A3E #3ED38A
tetradic
#8A3ED3 #D33F3E #87D33E #3ED1D3
square
#8A3ED3 #D33F3E #87D33E #3ED1D3
split-complementary
#8A3ED3 #D1D33E #3ED33F
monochromatic
#4C1C7B #6B27AC #8A3ED3 #A870DE #C6A2EA

Accessibility & contrast

On white

5.66
#8A3ED3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.71
#8A3ED3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ED3
5.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ED3#FFFFFF#000000##FFFFFF
##8A3ED31.005.663.715.66
#FFFFFF5.661.0021.001.00
#0000003.7121.001.0021.00
##FFFFFF5.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D7
Deuteranopia (green-blind)
#0067D0
Tritanopia (blue-blind)
#7B6284
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a3ed3;
/* rgb */ color: rgb(138, 62, 211);
/* oklch */ color: oklch(54.0% 0.217 303.0);
Tailwind
colors: {
  custom: {
    50: '#b279e1',
    500: '#8a3ed3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ed3;
$custom-light: #b279e1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ed3",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 211
  },
  "hsl": {
    "h": 270.604,
    "s": 62.869,
    "l": 53.529
  },
  "oklch": {
    "l": 0.53988,
    "c": 0.21699,
    "h": 303
  },
  "luminance": 0.13552
}

Semantic roles & 50–950 ramp

primary
#8A3ED3
secondary
#B6D696
accent
#E64292
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110A15
muted
#807C83

Preview Lab

Preview with #8A3ED3

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

Preview Lab → · Contrast checker → · Palette generator →

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