#8A3EC4#8A3EC4

#8A3EC4 is a mid, highly saturated violet. Relative luminance 0.128; OKLCH L 52.9% C 0.201 H 306.7°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC4
RGBrgb(138, 62, 196)
HSLhsl(274, 53%, 51%)
HSVhsv(274, 68%, 77%)
CMYKcmyk(29.6%, 68.4%, 0%, 23.1%)
CIE-LABlab(42.51, 55.55, -56.96)
CIE-LCHlch(42.51, 79.56, 314.28°)
OKLaboklab(52.89% 0.1204 -0.1615)
OKLCHoklch(52.89% 0.201 306.7)
XYZxyz(22.1655, 12.8343, 53.5234)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC4 #78C43E
analogous
#473EC4 #8A3EC4 #C43EBB
triadic
#8A3EC4 #C48A3E #3EC48A
tetradic
#8A3EC4 #C4473E #78C43E #3EBBC4
square
#8A3EC4 #C4473E #78C43E #3EBBC4
split-complementary
#8A3EC4 #BBC43E #3EC447
monochromatic
#492068 #692E97 #8A3EC4 #A66DD2 #C39CE1

Accessibility & contrast

On white

5.89
#8A3EC4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.57
#8A3EC4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC4
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC4#FFFFFF#000000##FFFFFF
##8A3EC41.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C8
Deuteranopia (green-blind)
#1865C1
Tritanopia (blue-blind)
#805C7C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #8a3ec4;
/* rgb */ color: rgb(138, 62, 196);
/* oklch */ color: oklch(52.9% 0.201 306.7);
Tailwind
colors: {
  custom: {
    50: '#b179d7',
    500: '#8a3ec4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec4;
$custom-light: #b179d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec4",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 196
  },
  "hsl": {
    "h": 274.03,
    "s": 53.175,
    "l": 50.588
  },
  "oklch": {
    "l": 0.52888,
    "c": 0.20147,
    "h": 306.7
  },
  "luminance": 0.12834
}

Semantic roles & 50–950 ramp

primary
#8A3EC4
secondary
#ABCD91
accent
#DD4B8A
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3EC4

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

Preview Lab → · Contrast checker → · Palette generator →

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