#8A3EA9#8A3EA9

#8A3EA9 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.1% C 0.174 H 314.8°. Best body text is #FFFFFF at 6.28:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA9
RGBrgb(138, 62, 169)
HSLhsl(283, 46%, 45%)
HSVhsv(283, 63%, 66%)
CMYKcmyk(18.3%, 63.3%, 0%, 33.7%)
CIE-LABlab(40.76, 49.57, -43.90)
CIE-LCHlch(40.76, 66.21, 318.47°)
OKLaboklab(51.07% 0.1223 -0.1232)
OKLCHoklch(51.07% 0.174 314.8)
XYZxyz(19.3641, 11.7137, 38.7694)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA9 #5DA93E
analogous
#553EA9 #8A3EA9 #A93E92
triadic
#8A3EA9 #A98A3E #3EA98A
tetradic
#8A3EA9 #A9553E #5DA93E #3E92A9
square
#8A3EA9 #A9553E #5DA93E #3E92A9
split-complementary
#8A3EA9 #92A93E #3EA955
monochromatic
#411D4F #652E7C #8A3EA9 #A760C5 #C08CD5

Accessibility & contrast

On white

6.28
#8A3EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3EA9
6.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA9#FFFFFF#000000##FFFFFF
##8A3EA91.006.283.346.28
#FFFFFF6.281.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#165CAC
Deuteranopia (green-blind)
#3B62A6
Tritanopia (blue-blind)
#88526E
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3ea9;
/* rgb */ color: rgb(138, 62, 169);
/* oklch */ color: oklch(51.1% 0.174 314.8);
Tailwind
colors: {
  custom: {
    50: '#af78c3',
    500: '#8a3ea9',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea9;
$custom-light: #af78c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea9",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 169
  },
  "hsl": {
    "h": 282.617,
    "s": 46.32,
    "l": 45.294
  },
  "oklch": {
    "l": 0.51065,
    "c": 0.17357,
    "h": 314.8
  },
  "luminance": 0.11713
}

Semantic roles & 50–950 ramp

primary
#8A3EA9
secondary
#95C083
accent
#D65278
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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