#8A3ECA#8A3ECA

#8A3ECA is a mid, highly saturated violet. Relative luminance 0.131; OKLCH L 53.3% C 0.208 H 305.2°. Best body text is #FFFFFF at 5.80:1 contrast (WCAG AA passes).

Color values

HEX#8A3ECA
RGBrgb(138, 62, 202)
HSLhsl(273, 57%, 52%)
HSVhsv(273, 69%, 79%)
CMYKcmyk(31.7%, 69.3%, 0%, 20.8%)
CIE-LABlab(42.93, 56.93, -59.76)
CIE-LCHlch(42.93, 82.54, 313.61°)
OKLaboklab(53.32% 0.1197 -0.1698)
OKLCHoklch(53.32% 0.208 305.2)
XYZxyz(22.8622, 13.1129, 57.1923)
Luminance0.1311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3ECA #7ECA3E
analogous
#443ECA #8A3ECA #CA3EC4
triadic
#8A3ECA #CA8A3E #3ECA8A
tetradic
#8A3ECA #CA443E #7ECA3E #3EC4CA
square
#8A3ECA #CA443E #7ECA3E #3EC4CA
split-complementary
#8A3ECA #C4CA3E #3ECA44
monochromatic
#4A1F6F #6A2C9F #8A3ECA #A76ED7 #C49EE4

Accessibility & contrast

On white

5.80
#8A3ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.62
#8A3ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3ECA
5.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3ECA#FFFFFF#000000##FFFFFF
##8A3ECA1.005.803.625.80
#FFFFFF5.801.0021.001.00
#0000003.6221.001.0021.00
##FFFFFF5.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0063CE
Deuteranopia (green-blind)
#0166C7
Tritanopia (blue-blind)
#7E5E7F
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3eca;
/* rgb */ color: rgb(138, 62, 202);
/* oklch */ color: oklch(53.3% 0.208 305.2);
Tailwind
colors: {
  custom: {
    50: '#b179db',
    500: '#8a3eca',
    950: '#000000',
  },
}
SCSS
$custom: #8a3eca;
$custom-light: #b179db;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3eca",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 202
  },
  "hsl": {
    "h": 272.571,
    "s": 56.911,
    "l": 51.765
  },
  "oklch": {
    "l": 0.53321,
    "c": 0.20769,
    "h": 305.2
  },
  "luminance": 0.13113
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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