#8A3EC7#8A3EC7

#8A3EC7 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.1% C 0.205 H 305.9°. Best body text is #FFFFFF at 5.84:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC7
RGBrgb(138, 62, 199)
HSLhsl(273, 55%, 51%)
HSVhsv(273, 69%, 78%)
CMYKcmyk(30.7%, 68.8%, 0%, 22%)
CIE-LABlab(42.72, 56.24, -58.36)
CIE-LCHlch(42.72, 81.05, 313.94°)
OKLaboklab(53.1% 0.1201 -0.1656)
OKLCHoklch(53.1% 0.205 305.9)
XYZxyz(22.5104, 12.9722, 55.3398)
Luminance0.1297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC7 #7BC73E
analogous
#453EC7 #8A3EC7 #C73EBF
triadic
#8A3EC7 #C78A3E #3EC78A
tetradic
#8A3EC7 #C7453E #7BC73E #3EBFC7
square
#8A3EC7 #C7453E #7BC73E #3EBFC7
split-complementary
#8A3EC7 #BFC73E #3EC745
monochromatic
#491F6B #6A2D9B #8A3EC7 #A76DD5 #C49DE3

Accessibility & contrast

On white

5.84
#8A3EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A3EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC7
5.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC7#FFFFFF#000000##FFFFFF
##8A3EC71.005.843.595.84
#FFFFFF5.841.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CB
Deuteranopia (green-blind)
#0F65C4
Tritanopia (blue-blind)
#7F5D7E
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3ec7;
/* rgb */ color: rgb(138, 62, 199);
/* oklch */ color: oklch(53.1% 0.205 305.9);
Tailwind
colors: {
  custom: {
    50: '#b179d9',
    500: '#8a3ec7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec7;
$custom-light: #b179d9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec7",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 199
  },
  "hsl": {
    "h": 273.285,
    "s": 55.02,
    "l": 51.176
  },
  "oklch": {
    "l": 0.53103,
    "c": 0.20458,
    "h": 305.9
  },
  "luminance": 0.12972
}

Semantic roles & 50–950 ramp

primary
#8A3EC7
secondary
#ADCF92
accent
#DE498C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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