#8A3EA8#8A3EA8

#8A3EA8 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.0% C 0.173 H 315.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA8
RGBrgb(138, 62, 168)
HSLhsl(283, 46%, 45%)
HSVhsv(283, 63%, 66%)
CMYKcmyk(17.9%, 63.1%, 0%, 34.1%)
CIE-LABlab(40.70, 49.35, -43.40)
CIE-LCHlch(40.70, 65.72, 318.67°)
OKLaboklab(51% 0.1223 -0.1217)
OKLCHoklch(51% 0.173 315.1)
XYZxyz(19.2706, 11.6763, 38.2768)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA8 #5CA83E
analogous
#553EA8 #8A3EA8 #A83E91
triadic
#8A3EA8 #A88A3E #3EA88A
tetradic
#8A3EA8 #A8553E #5CA83E #3E91A8
square
#8A3EA8 #A8553E #5CA83E #3E91A8
split-complementary
#8A3EA8 #91A83E #3EA855
monochromatic
#411D4F #652E7B #8A3EA8 #A75FC4 #C08CD5

Accessibility & contrast

On white

6.30
#8A3EA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.34
#8A3EA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EA8
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA8#FFFFFF#000000##FFFFFF
##8A3EA81.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185CAB
Deuteranopia (green-blind)
#3C62A5
Tritanopia (blue-blind)
#88516D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ea8;
/* rgb */ color: rgb(138, 62, 168);
/* oklch */ color: oklch(51.0% 0.173 315.1);
Tailwind
colors: {
  custom: {
    50: '#af78c2',
    500: '#8a3ea8',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea8;
$custom-light: #af78c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea8",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 168
  },
  "hsl": {
    "h": 283.019,
    "s": 46.087,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51002,
    "c": 0.17255,
    "h": 315.1
  },
  "luminance": 0.11676
}

Semantic roles & 50–950 ramp

primary
#8A3EA8
secondary
#94BF83
accent
#D65277
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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