#8A3EA2#8A3EA2

#8A3EA2 is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.6% C 0.166 H 317.3°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A3EA2
RGBrgb(138, 62, 162)
HSLhsl(286, 45%, 44%)
HSVhsv(286, 62%, 64%)
CMYKcmyk(14.8%, 61.7%, 0%, 36.5%)
CIE-LABlab(40.34, 48.08, -40.38)
CIE-LCHlch(40.34, 62.79, 319.97°)
OKLaboklab(50.63% 0.1223 -0.1129)
OKLCHoklch(50.63% 0.166 317.3)
XYZxyz(18.7245, 11.4579, 35.4007)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3EA2 #56A23E
analogous
#583EA2 #8A3EA2 #A23E88
triadic
#8A3EA2 #A28A3E #3EA28A
tetradic
#8A3EA2 #A2583E #56A23E #3E88A2
square
#8A3EA2 #A2583E #56A23E #3E88A2
split-complementary
#8A3EA2 #88A23E #3EA258
monochromatic
#3F1C49 #642D76 #8A3EA2 #A95CC1 #C089D2

Accessibility & contrast

On white

6.38
#8A3EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A3EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3EA2
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3EA2#FFFFFF#000000##FFFFFF
##8A3EA21.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#215AA5
Deuteranopia (green-blind)
#4161A0
Tritanopia (blue-blind)
#894F6A
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3ea2;
/* rgb */ color: rgb(138, 62, 162);
/* oklch */ color: oklch(50.6% 0.166 317.3);
Tailwind
colors: {
  custom: {
    50: '#af78be',
    500: '#8a3ea2',
    950: '#000000',
  },
}
SCSS
$custom: #8a3ea2;
$custom-light: #af78be;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3ea2",
  "rgb": {
    "r": 138,
    "g": 62,
    "b": 162
  },
  "hsl": {
    "h": 285.6,
    "s": 44.643,
    "l": 43.922
  },
  "oklch": {
    "l": 0.50629,
    "c": 0.16643,
    "h": 317.3
  },
  "luminance": 0.11457
}

Semantic roles & 50–950 ramp

primary
#8A3EA2
secondary
#8EBC80
accent
#D45372
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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