#8A3EC0#8A3EC0

#8A3EC0 is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.6% C 0.197 H 307.8°. Best body text is #FFFFFF at 5.95:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC0
RGBrgb(138, 62, 192)
HSLhsl(275, 51%, 50%)
HSVhsv(275, 68%, 75%)
CMYKcmyk(28.1%, 67.7%, 0%, 24.7%)
CIE-LABlab(42.24, 54.64, -55.07)
CIE-LCHlch(42.24, 77.58, 314.78°)
OKLaboklab(52.61% 0.1209 -0.156)
OKLCHoklch(52.61% 0.197 307.8)
XYZxyz(21.7163, 12.6546, 51.1575)
Luminance0.1265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC0 #74C03E
analogous
#493EC0 #8A3EC0 #C03EB5
triadic
#8A3EC0 #C08A3E #3EC08A
tetradic
#8A3EC0 #C0493E #74C03E #3EB5C0
square
#8A3EC0 #C0493E #74C03E #3EB5C0
split-complementary
#8A3EC0 #B5C03E #3EC049
monochromatic
#472063 #692F92 #8A3EC0 #A66CCF #C29ADE

Accessibility & contrast

On white

5.95
#8A3EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.53
#8A3EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC0
5.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC0#FFFFFF#000000##FFFFFF
##8A3EC01.005.953.535.95
#FFFFFF5.951.0021.001.00
#0000003.5321.001.0021.00
##FFFFFF5.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0061C4
Deuteranopia (green-blind)
#2064BD
Tritanopia (blue-blind)
#815A7A
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3ec0;
/* rgb */ color: rgb(138, 62, 192);
/* oklch */ color: oklch(52.6% 0.197 307.8);
Tailwind
colors: {
  custom: {
    50: '#b079d4',
    500: '#8a3ec0',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec0;
$custom-light: #b079d4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec0",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 192
  },
  "hsl": {
    "h": 275.077,
    "s": 51.181,
    "l": 49.804
  },
  "oklch": {
    "l": 0.52605,
    "c": 0.19733,
    "h": 307.8
  },
  "luminance": 0.12654
}

Semantic roles & 50–950 ramp

primary
#8A3EC0
secondary
#A8CA8F
accent
#DB4D88
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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