#8A3EC6#8A3EC6

#8A3EC6 is a mid, highly saturated violet. Relative luminance 0.129; OKLCH L 53.0% C 0.204 H 306.2°. Best body text is #FFFFFF at 5.86:1 contrast (WCAG AA passes).

Color values

HEX#8A3EC6
RGBrgb(138, 62, 198)
HSLhsl(274, 54%, 51%)
HSVhsv(274, 69%, 78%)
CMYKcmyk(30.3%, 68.7%, 0%, 22.4%)
CIE-LABlab(42.65, 56.01, -57.90)
CIE-LCHlch(42.65, 80.56, 314.05°)
OKLaboklab(53.03% 0.1202 -0.1643)
OKLCHoklch(53.03% 0.204 306.2)
XYZxyz(22.3947, 12.9260, 54.7303)
Luminance0.1293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC6 #7AC63E
analogous
#463EC6 #8A3EC6 #C63EBE
triadic
#8A3EC6 #C68A3E #3EC68A
tetradic
#8A3EC6 #C6463E #7AC63E #3EBEC6
square
#8A3EC6 #C6463E #7AC63E #3EBEC6
split-complementary
#8A3EC6 #BEC63E #3EC646
monochromatic
#491F6A #6A2D99 #8A3EC6 #A76DD4 #C39CE2

Accessibility & contrast

On white

5.86
#8A3EC6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.59
#8A3EC6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC6
5.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC6#FFFFFF#000000##FFFFFF
##8A3EC61.005.863.595.86
#FFFFFF5.861.0021.001.00
#0000003.5921.001.0021.00
##FFFFFF5.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062CA
Deuteranopia (green-blind)
#1265C3
Tritanopia (blue-blind)
#805D7D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3ec6;
/* rgb */ color: rgb(138, 62, 198);
/* oklch */ color: oklch(53.0% 0.204 306.2);
Tailwind
colors: {
  custom: {
    50: '#b179d8',
    500: '#8a3ec6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec6;
$custom-light: #b179d8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec6",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 198
  },
  "hsl": {
    "h": 273.529,
    "s": 54.4,
    "l": 50.98
  },
  "oklch": {
    "l": 0.53031,
    "c": 0.20355,
    "h": 306.2
  },
  "luminance": 0.12926
}

Semantic roles & 50–950 ramp

primary
#8A3EC6
secondary
#ACCE92
accent
#DE4A8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110915
muted
#807B83

Preview Lab

Preview with #8A3EC6

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

Preview Lab → · Contrast checker → · Palette generator →

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