#8A3EC8#8A3EC8

#8A3EC8 is a mid, highly saturated violet. Relative luminance 0.130; OKLCH L 53.2% C 0.206 H 305.7°. Best body text is #FFFFFF at 5.83:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC8
RGBrgb(138, 62, 200)
HSLhsl(273, 56%, 51%)
HSVhsv(273, 69%, 78%)
CMYKcmyk(31%, 69%, 0%, 21.6%)
CIE-LABlab(42.79, 56.47, -58.83)
CIE-LCHlch(42.79, 81.55, 313.83°)
OKLaboklab(53.18% 0.1199 -0.167)
OKLCHoklch(53.18% 0.206 305.7)
XYZxyz(22.6269, 13.0188, 55.9533)
Luminance0.1302 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC8 #7CC83E
analogous
#453EC8 #8A3EC8 #C83EC1
triadic
#8A3EC8 #C88A3E #3EC88A
tetradic
#8A3EC8 #C8453E #7CC83E #3EC1C8
square
#8A3EC8 #C8453E #7CC83E #3EC1C8
split-complementary
#8A3EC8 #C1C83E #3EC845
monochromatic
#4A1F6D #6A2D9C #8A3EC8 #A76ED6 #C49DE3

Accessibility & contrast

On white

5.83
#8A3EC8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.60
#8A3EC8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC8
5.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC8#FFFFFF#000000##FFFFFF
##8A3EC81.005.833.605.83
#FFFFFF5.831.0021.001.00
#0000003.6021.001.0021.00
##FFFFFF5.831.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a3ec8;
/* rgb */ color: rgb(138, 62, 200);
/* oklch */ color: oklch(53.2% 0.206 305.7);
Tailwind
colors: {
  custom: {
    50: '#b179da',
    500: '#8a3ec8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec8;
$custom-light: #b179da;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec8",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 200
  },
  "hsl": {
    "h": 273.043,
    "s": 55.645,
    "l": 51.373
  },
  "oklch": {
    "l": 0.53176,
    "c": 0.20561,
    "h": 305.7
  },
  "luminance": 0.13019
}

Semantic roles & 50–950 ramp

primary
#8A3EC8
secondary
#AECF92
accent
#DF498C
background
#FBF7FD
surface
#F6EEFB
border
#D0C9D4
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3EC8

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

Preview Lab → · Contrast checker → · Palette generator →

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