#8A3EC3#8A3EC3

#8A3EC3 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.8% C 0.200 H 307.0°. Best body text is #FFFFFF at 5.90:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC3
RGBrgb(138, 62, 195)
HSLhsl(274, 53%, 50%)
HSVhsv(274, 68%, 76%)
CMYKcmyk(29.2%, 68.2%, 0%, 23.5%)
CIE-LABlab(42.44, 55.33, -56.49)
CIE-LCHlch(42.44, 79.07, 314.40°)
OKLaboklab(52.82% 0.1205 -0.1601)
OKLCHoklch(52.82% 0.2 307)
XYZxyz(22.0521, 12.7889, 52.9260)
Luminance0.1279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC3 #77C33E
analogous
#483EC3 #8A3EC3 #C33EB9
triadic
#8A3EC3 #C38A3E #3EC38A
tetradic
#8A3EC3 #C3483E #77C33E #3EB9C3
square
#8A3EC3 #C3483E #77C33E #3EB9C3
split-complementary
#8A3EC3 #B9C33E #3EC348
monochromatic
#482067 #692E95 #8A3EC3 #A66DD2 #C39BE0

Accessibility & contrast

On white

5.90
#8A3EC3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#8A3EC3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC3
5.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC3#FFFFFF#000000##FFFFFF
##8A3EC31.005.903.565.90
#FFFFFF5.901.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C7
Deuteranopia (green-blind)
#1A65C0
Tritanopia (blue-blind)
#815B7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3ec3;
/* rgb */ color: rgb(138, 62, 195);
/* oklch */ color: oklch(52.8% 0.200 307.0);
Tailwind
colors: {
  custom: {
    50: '#b179d6',
    500: '#8a3ec3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec3;
$custom-light: #b179d6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec3",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 195
  },
  "hsl": {
    "h": 274.286,
    "s": 52.569,
    "l": 50.392
  },
  "oklch": {
    "l": 0.52817,
    "c": 0.20044,
    "h": 307
  },
  "luminance": 0.12789
}

Semantic roles & 50–950 ramp

primary
#8A3EC3
secondary
#AACC91
accent
#DC4C8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3EC3

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

Preview Lab → · Contrast checker → · Palette generator →

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