#8A3EC5#8A3EC5

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

Color values

HEX#8A3EC5
RGBrgb(138, 62, 197)
HSLhsl(274, 54%, 51%)
HSVhsv(274, 69%, 77%)
CMYKcmyk(29.9%, 68.5%, 0%, 22.7%)
CIE-LABlab(42.58, 55.78, -57.43)
CIE-LCHlch(42.58, 80.06, 314.17°)
OKLaboklab(52.96% 0.1203 -0.1629)
OKLCHoklch(52.96% 0.203 306.4)
XYZxyz(22.2797, 12.8800, 54.1249)
Luminance0.1288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EC5 #79C53E
analogous
#463EC5 #8A3EC5 #C53EBC
triadic
#8A3EC5 #C58A3E #3EC58A
tetradic
#8A3EC5 #C5463E #79C53E #3EBCC5
square
#8A3EC5 #C5463E #79C53E #3EBCC5
split-complementary
#8A3EC5 #BCC53E #3EC546
monochromatic
#492069 #6A2E98 #8A3EC5 #A76DD3 #C39CE1

Accessibility & contrast

On white

5.87
#8A3EC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.58
#8A3EC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EC5
5.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EC5#FFFFFF#000000##FFFFFF
##8A3EC51.005.873.585.87
#FFFFFF5.871.0021.001.00
#0000003.5821.001.0021.00
##FFFFFF5.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0062C9
Deuteranopia (green-blind)
#1565C2
Tritanopia (blue-blind)
#805C7D
Achromatopsia (no color)
#656565

Design tokens & code

CSS
--color: #8a3ec5;
/* rgb */ color: rgb(138, 62, 197);
/* oklch */ color: oklch(53.0% 0.203 306.4);
Tailwind
colors: {
  custom: {
    50: '#b179d7',
    500: '#8a3ec5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ec5;
$custom-light: #b179d7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ec5",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 197
  },
  "hsl": {
    "h": 273.778,
    "s": 53.785,
    "l": 50.784
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.20251,
    "h": 306.4
  },
  "luminance": 0.1288
}

Semantic roles & 50–950 ramp

primary
#8A3EC5
secondary
#ACCD91
accent
#DD4B8B
background
#FBF7FD
surface
#F6EEFA
border
#D0C9D3
text
#110914
muted
#807B83

Preview Lab

Preview with #8A3EC5

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

Preview Lab → · Contrast checker → · Palette generator →

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