#8A3EC2#8A3EC2

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

Color values

HEX#8A3EC2
RGBrgb(138, 62, 194)
HSLhsl(275, 52%, 50%)
HSVhsv(275, 68%, 76%)
CMYKcmyk(28.9%, 68%, 0%, 23.9%)
CIE-LABlab(42.37, 55.10, -56.02)
CIE-LCHlch(42.37, 78.57, 314.53°)
OKLaboklab(52.75% 0.1207 -0.1587)
OKLCHoklch(52.75% 0.199 307.2)
XYZxyz(21.9394, 12.7438, 52.3325)
Luminance0.1274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC2 #76C23E
analogous
#483EC2 #8A3EC2 #C23EB8
triadic
#8A3EC2 #C28A3E #3EC28A
tetradic
#8A3EC2 #C2483E #76C23E #3EB8C2
square
#8A3EC2 #C2483E #76C23E #3EB8C2
split-complementary
#8A3EC2 #B8C23E #3EC248
monochromatic
#482066 #692F94 #8A3EC2 #A66DD1 #C29BDF

Accessibility & contrast

On white

5.92
#8A3EC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#8A3EC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC2
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC2#FFFFFF#000000##FFFFFF
##8A3EC21.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a3ec2;
/* rgb */ color: rgb(138, 62, 194);
/* oklch */ color: oklch(52.7% 0.199 307.2);
Tailwind
colors: {
  custom: {
    50: '#b179d5',
    500: '#8a3ec2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec2;
$custom-light: #b179d5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec2",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 194
  },
  "hsl": {
    "h": 274.545,
    "s": 51.969,
    "l": 50.196
  },
  "oklch": {
    "l": 0.52746,
    "c": 0.1994,
    "h": 307.2
  },
  "luminance": 0.12744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A3EC2

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

Preview Lab → · Contrast checker → · Palette generator →

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