#8A3ED4#8A3ED4

#8A3ED4 is a mid, highly saturated violet. Relative luminance 0.136; OKLCH L 54.1% C 0.218 H 302.8°. Best body text is #FFFFFF at 5.64:1 contrast (WCAG AA passes).

Color values

HEX#8A3ED4
RGBrgb(138, 62, 212)
HSLhsl(270, 64%, 54%)
HSVhsv(270, 71%, 83%)
CMYKcmyk(34.9%, 70.8%, 0%, 16.9%)
CIE-LABlab(43.66, 59.26, -64.36)
CIE-LCHlch(43.66, 87.48, 312.64°)
OKLaboklab(54.06% 0.1181 -0.1833)
OKLCHoklch(54.06% 0.218 302.8)
XYZxyz(24.0847, 13.6020, 63.6312)
Luminance0.1360 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ED4 #88D43E
analogous
#3F3ED4 #8A3ED4 #D43ED3
triadic
#8A3ED4 #D48A3E #3ED48A
tetradic
#8A3ED4 #D43F3E #88D43E #3ED3D4
square
#8A3ED4 #D43F3E #88D43E #3ED3D4
split-complementary
#8A3ED4 #D3D43E #3ED43F
monochromatic
#4C1C7C #6B27AE #8A3ED4 #A870DF #C7A2EA

Accessibility & contrast

On white

5.64
#8A3ED4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.72
#8A3ED4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ED4
5.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ED4#FFFFFF#000000##FFFFFF
##8A3ED41.005.643.725.64
#FFFFFF5.641.0021.001.00
#0000003.7221.001.0021.00
##FFFFFF5.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0066D8
Deuteranopia (green-blind)
#0067D1
Tritanopia (blue-blind)
#7B6285
Achromatopsia (no color)
#676767

Design tokens & code

CSS
--color: #8a3ed4;
/* rgb */ color: rgb(138, 62, 212);
/* oklch */ color: oklch(54.1% 0.218 302.8);
Tailwind
colors: {
  custom: {
    50: '#b27ae2',
    500: '#8a3ed4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ed4;
$custom-light: #b27ae2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ed4",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 212
  },
  "hsl": {
    "h": 270.4,
    "s": 63.559,
    "l": 53.725
  },
  "oklch": {
    "l": 0.54064,
    "c": 0.21802,
    "h": 302.8
  },
  "luminance": 0.13602
}

Semantic roles & 50–950 ramp

primary
#8A3ED4
secondary
#B6D797
accent
#E74193
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110A15
muted
#807C84

Preview Lab

Preview with #8A3ED4

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

Preview Lab → · Contrast checker → · Palette generator →

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