#8A3ED5#8A3ED5

#8A3ED5 is a mid, highly saturated violet. Relative luminance 0.137; OKLCH L 54.1% C 0.219 H 302.6°. Best body text is #FFFFFF at 5.63:1 contrast (WCAG AA passes).

Color values

HEX#8A3ED5
RGBrgb(138, 62, 213)
HSLhsl(270, 64%, 54%)
HSVhsv(270, 71%, 84%)
CMYKcmyk(35.2%, 70.9%, 0%, 16.5%)
CIE-LABlab(43.73, 59.49, -64.81)
CIE-LCHlch(43.73, 87.98, 312.55°)
OKLaboklab(54.14% 0.1179 -0.1846)
OKLCHoklch(54.14% 0.219 302.6)
XYZxyz(24.2113, 13.6526, 64.2976)
Luminance0.1365 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ED5 #89D53E
analogous
#3F3ED5 #8A3ED5 #D53ED4
triadic
#8A3ED5 #D58A3E #3ED58A
tetradic
#8A3ED5 #D53F3E #89D53E #3ED4D5
square
#8A3ED5 #D53F3E #89D53E #3ED4D5
split-complementary
#8A3ED5 #D4D53E #3ED53F
monochromatic
#4D1B7D #6B26B0 #8A3ED5 #A870E0 #C7A3EB

Accessibility & contrast

On white

5.63
#8A3ED5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.73
#8A3ED5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ED5
5.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ED5#FFFFFF#000000##FFFFFF
##8A3ED51.005.633.735.63
#FFFFFF5.631.0021.001.00
#0000003.7321.001.0021.00
##FFFFFF5.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D9
Deuteranopia (green-blind)
#0067D2
Tritanopia (blue-blind)
#7B6286
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a3ed5;
/* rgb */ color: rgb(138, 62, 213);
/* oklch */ color: oklch(54.1% 0.219 302.6);
Tailwind
colors: {
  custom: {
    50: '#b27ae3',
    500: '#8a3ed5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ed5;
$custom-light: #b27ae3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ed5",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 213
  },
  "hsl": {
    "h": 270.199,
    "s": 64.255,
    "l": 53.922
  },
  "oklch": {
    "l": 0.5414,
    "c": 0.21905,
    "h": 302.6
  },
  "luminance": 0.13653
}

Semantic roles & 50–950 ramp

primary
#8A3ED5
secondary
#B7D897
accent
#E74193
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#120A16
muted
#817C84

Preview Lab

Preview with #8A3ED5

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

Preview Lab → · Contrast checker → · Palette generator →

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