#8A3EA7#8A3EA7

#8A3EA7 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.9% C 0.172 H 315.5°. Best body text is #FFFFFF at 6.31:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA7
RGBrgb(138, 62, 167)
HSLhsl(283, 46%, 45%)
HSVhsv(283, 63%, 65%)
CMYKcmyk(17.4%, 62.9%, 0%, 34.5%)
CIE-LABlab(40.64, 49.14, -42.90)
CIE-LCHlch(40.64, 65.23, 318.88°)
OKLaboklab(50.94% 0.1223 -0.1203)
OKLCHoklch(50.94% 0.172 315.5)
XYZxyz(19.1778, 11.6392, 37.7881)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA7 #5BA73E
analogous
#563EA7 #8A3EA7 #A73E8F
triadic
#8A3EA7 #A78A3E #3EA78A
tetradic
#8A3EA7 #A7563E #5BA73E #3E8FA7
square
#8A3EA7 #A7563E #5BA73E #3E8FA7
split-complementary
#8A3EA7 #8FA73E #3EA756
monochromatic
#401D4E #652D7A #8A3EA7 #A85FC3 #C08BD4

Accessibility & contrast

On white

6.31
#8A3EA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.33
#8A3EA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EA7
6.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA7#FFFFFF#000000##FFFFFF
##8A3EA71.006.313.336.31
#FFFFFF6.311.0021.001.00
#0000003.3321.001.0021.00
##FFFFFF6.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5BAA
Deuteranopia (green-blind)
#3D62A4
Tritanopia (blue-blind)
#88516D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ea7;
/* rgb */ color: rgb(138, 62, 167);
/* oklch */ color: oklch(50.9% 0.172 315.5);
Tailwind
colors: {
  custom: {
    50: '#af78c2',
    500: '#8a3ea7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea7;
$custom-light: #af78c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea7",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 167
  },
  "hsl": {
    "h": 283.429,
    "s": 45.852,
    "l": 44.902
  },
  "oklch": {
    "l": 0.50939,
    "c": 0.17153,
    "h": 315.5
  },
  "luminance": 0.11639
}

Semantic roles & 50–950 ramp

primary
#8A3EA7
secondary
#93BF82
accent
#D65277
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA7

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

Preview Lab → · Contrast checker → · Palette generator →

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