#8A3FA4#8A3FA4

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

Color values

HEX#8A3FA4
RGBrgb(138, 63, 164)
HSLhsl(285, 44%, 45%)
HSVhsv(285, 62%, 64%)
CMYKcmyk(15.9%, 61.6%, 0%, 35.7%)
CIE-LABlab(40.64, 48.02, -41.11)
CIE-LCHlch(40.64, 63.21, 319.43°)
OKLaboklab(50.88% 0.121 -0.1151)
OKLCHoklch(50.88% 0.167 316.4)
XYZxyz(18.9586, 11.6393, 36.3627)
Luminance0.1164 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FA4 #59A43F
analogous
#573FA4 #8A3FA4 #A43F8C
triadic
#8A3FA4 #A48A3F #3FA48A
tetradic
#8A3FA4 #A4573F #59A43F #3F8CA4
square
#8A3FA4 #A4573F #59A43F #3F8CA4
split-complementary
#8A3FA4 #8CA43F #3FA457
monochromatic
#401D4C #652E78 #8A3FA4 #A85FC1 #C08BD2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A3FA4#FFFFFF#000000##FFFFFF
##8A3FA41.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)
#215BA7
Deuteranopia (green-blind)
#4062A1
Tritanopia (blue-blind)
#89506B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3fa4;
/* rgb */ color: rgb(138, 63, 164);
/* oklch */ color: oklch(50.9% 0.167 316.4);
Tailwind
colors: {
  custom: {
    50: '#af78bf',
    500: '#8a3fa4',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fa4;
$custom-light: #af78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fa4",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 164
  },
  "hsl": {
    "h": 284.554,
    "s": 44.493,
    "l": 44.51
  },
  "oklch": {
    "l": 0.50882,
    "c": 0.16698,
    "h": 316.4
  },
  "luminance": 0.11639
}

Semantic roles & 50–950 ramp

primary
#8A3FA4
secondary
#91BD82
accent
#D45475
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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