#8A3FA6#8A3FA6

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

Color values

HEX#8A3FA6
RGBrgb(138, 63, 166)
HSLhsl(284, 45%, 45%)
HSVhsv(284, 62%, 65%)
CMYKcmyk(16.9%, 62%, 0%, 34.9%)
CIE-LABlab(40.75, 48.44, -42.12)
CIE-LCHlch(40.75, 64.19, 319.00°)
OKLaboklab(51.01% 0.121 -0.118)
OKLCHoklch(51.01% 0.169 315.7)
XYZxyz(19.1406, 11.7121, 37.3214)
Luminance0.1171 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FA6 #5BA63F
analogous
#563FA6 #8A3FA6 #A63F8F
triadic
#8A3FA6 #A68A3F #3FA68A
tetradic
#8A3FA6 #A6563F #5BA63F #3F8FA6
square
#8A3FA6 #A6563F #5BA63F #3F8FA6
split-complementary
#8A3FA6 #8FA63F #3FA656
monochromatic
#401D4D #652E7A #8A3FA6 #A860C3 #C08CD3

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3FA6#FFFFFF#000000##FFFFFF
##8A3FA61.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)
#1E5CA9
Deuteranopia (green-blind)
#3F62A3
Tritanopia (blue-blind)
#88516D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3fa6;
/* rgb */ color: rgb(138, 63, 166);
/* oklch */ color: oklch(51.0% 0.169 315.7);
Tailwind
colors: {
  custom: {
    50: '#af79c1',
    500: '#8a3fa6',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fa6;
$custom-light: #af79c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fa6",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 166
  },
  "hsl": {
    "h": 283.689,
    "s": 44.978,
    "l": 44.902
  },
  "oklch": {
    "l": 0.51005,
    "c": 0.16903,
    "h": 315.7
  },
  "luminance": 0.11711
}

Semantic roles & 50–950 ramp

primary
#8A3FA6
secondary
#93BE83
accent
#D55376
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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