#8A3ED6#8A3ED6

#8A3ED6 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.2% C 0.220 H 302.3°. Best body text is #FFFFFF at 5.61:1 contrast (WCAG AA passes).

Color values

HEX#8A3ED6
RGBrgb(138, 62, 214)
HSLhsl(270, 65%, 54%)
HSVhsv(270, 71%, 84%)
CMYKcmyk(35.5%, 71%, 0%, 16.1%)
CIE-LABlab(43.80, 59.73, -65.26)
CIE-LCHlch(43.80, 88.47, 312.47°)
OKLaboklab(54.22% 0.1178 -0.1859)
OKLCHoklch(54.22% 0.22 302.3)
XYZxyz(24.3386, 13.7035, 64.9681)
Luminance0.1370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ED6 #8AD63E
analogous
#3E3ED6 #8A3ED6 #D63ED6
triadic
#8A3ED6 #D68A3E #3ED68A
tetradic
#8A3ED6 #D63E3E #8AD63E #3ED6D6
square
#8A3ED6 #D63E3E #8AD63E #3ED6D6
split-complementary
#8A3ED6 #D6D63E #3ED63E
monochromatic
#4D1B7F #6B26B1 #8A3ED6 #A970E1 #C7A3EB

Accessibility & contrast

On white

5.61
#8A3ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.74
#8A3ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ED6
5.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ED6#FFFFFF#000000##FFFFFF
##8A3ED61.005.613.745.61
#FFFFFF5.611.0021.001.00
#0000003.7421.001.0021.00
##FFFFFF5.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066DA
Deuteranopia (green-blind)
#0067D3
Tritanopia (blue-blind)
#7A6386
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #8a3ed6;
/* rgb */ color: rgb(138, 62, 214);
/* oklch */ color: oklch(54.2% 0.220 302.3);
Tailwind
colors: {
  custom: {
    50: '#b27ae4',
    500: '#8a3ed6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ed6;
$custom-light: #b27ae4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ed6",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 214
  },
  "hsl": {
    "h": 270,
    "s": 64.957,
    "l": 54.118
  },
  "oklch": {
    "l": 0.54215,
    "c": 0.22008,
    "h": 302.3
  },
  "luminance": 0.13704
}

Semantic roles & 50–950 ramp

primary
#8A3ED6
secondary
#B8D898
accent
#E84094
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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