#8A3EC9#8A3EC9

#8A3EC9 is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.2% C 0.207 H 305.4°. Best body text is #FFFFFF at 5.81:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC9
RGBrgb(138, 62, 201)
HSLhsl(273, 56%, 52%)
HSVhsv(273, 69%, 79%)
CMYKcmyk(31.3%, 69.2%, 0%, 21.2%)
CIE-LABlab(42.86, 56.70, -59.30)
CIE-LCHlch(42.86, 82.04, 313.72°)
OKLaboklab(53.25% 0.1198 -0.1684)
OKLCHoklch(53.25% 0.207 305.4)
XYZxyz(22.7441, 13.0657, 56.5708)
Luminance0.1307 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC9 #7DC93E
analogous
#453EC9 #8A3EC9 #C93EC2
triadic
#8A3EC9 #C98A3E #3EC98A
tetradic
#8A3EC9 #C9453E #7DC93E #3EC2C9
square
#8A3EC9 #C9453E #7DC93E #3EC2C9
split-complementary
#8A3EC9 #C2C93E #3EC945
monochromatic
#4A1F6E #6A2C9E #8A3EC9 #A76ED6 #C49EE4

Accessibility & contrast

On white

5.81
#8A3EC9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.61
#8A3EC9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC9
5.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC9#FFFFFF#000000##FFFFFF
##8A3EC91.005.813.615.81
#FFFFFF5.811.0021.001.00
#0000003.6121.001.0021.00
##FFFFFF5.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CD
Deuteranopia (green-blind)
#0565C6
Tritanopia (blue-blind)
#7F5E7F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3ec9;
/* rgb */ color: rgb(138, 62, 201);
/* oklch */ color: oklch(53.2% 0.207 305.4);
Tailwind
colors: {
  custom: {
    50: '#b179da',
    500: '#8a3ec9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec9;
$custom-light: #b179da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec9",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 201
  },
  "hsl": {
    "h": 272.806,
    "s": 56.275,
    "l": 51.569
  },
  "oklch": {
    "l": 0.53248,
    "c": 0.20665,
    "h": 305.4
  },
  "luminance": 0.13066
}

Semantic roles & 50–950 ramp

primary
#8A3EC9
secondary
#AFD093
accent
#E0488D
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3EC9

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

Preview Lab → · Contrast checker → · Palette generator →

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