#8A3EC1#8A3EC1

#8A3EC1 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.7% C 0.198 H 307.5°. Best body text is #FFFFFF at 5.93:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC1
RGBrgb(138, 62, 193)
HSLhsl(275, 51%, 50%)
HSVhsv(275, 68%, 76%)
CMYKcmyk(28.5%, 67.9%, 0%, 24.3%)
CIE-LABlab(42.31, 54.87, -55.54)
CIE-LCHlch(42.31, 78.08, 314.65°)
OKLaboklab(52.68% 0.1208 -0.1574)
OKLCHoklch(52.68% 0.198 307.5)
XYZxyz(21.8275, 12.6991, 51.7430)
Luminance0.1270 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC1 #75C13E
analogous
#483EC1 #8A3EC1 #C13EB7
triadic
#8A3EC1 #C18A3E #3EC18A
tetradic
#8A3EC1 #C1483E #75C13E #3EB7C1
square
#8A3EC1 #C1483E #75C13E #3EB7C1
split-complementary
#8A3EC1 #B7C13E #3EC148
monochromatic
#482064 #692F93 #8A3EC1 #A66CD0 #C29BDF

Accessibility & contrast

On white

5.93
#8A3EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#8A3EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC1
5.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC1#FFFFFF#000000##FFFFFF
##8A3EC11.005.933.545.93
#FFFFFF5.931.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C5
Deuteranopia (green-blind)
#1E65BE
Tritanopia (blue-blind)
#815B7B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3ec1;
/* rgb */ color: rgb(138, 62, 193);
/* oklch */ color: oklch(52.7% 0.198 307.5);
Tailwind
colors: {
  custom: {
    50: '#b079d4',
    500: '#8a3ec1',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec1;
$custom-light: #b079d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec1",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 193
  },
  "hsl": {
    "h": 274.809,
    "s": 51.373,
    "l": 50
  },
  "oklch": {
    "l": 0.52675,
    "c": 0.19836,
    "h": 307.5
  },
  "luminance": 0.12699
}

Semantic roles & 50–950 ramp

primary
#8A3EC1
secondary
#A9CB90
accent
#DB4D89
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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