#8A3FA3#8A3FA3

#8A3FA3 is a mid, vivid purple. Relative luminance 0.116; OKLCH L 50.8% C 0.166 H 316.8°. Best body text is #FFFFFF at 6.32:1 contrast (WCAG AA passes).

Color values

HEX#8A3FA3
RGBrgb(138, 63, 163)
HSLhsl(285, 44%, 44%)
HSVhsv(285, 61%, 64%)
CMYKcmyk(15.3%, 61.3%, 0%, 36.1%)
CIE-LABlab(40.58, 47.80, -40.60)
CIE-LCHlch(40.58, 62.72, 319.66°)
OKLaboklab(50.82% 0.121 -0.1136)
OKLCHoklch(50.82% 0.166 316.8)
XYZxyz(18.8686, 11.6033, 35.8890)
Luminance0.1160 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FA3 #58A33F
analogous
#583FA3 #8A3FA3 #A33F8A
triadic
#8A3FA3 #A38A3F #3FA38A
tetradic
#8A3FA3 #A3583F #58A33F #3F8AA3
square
#8A3FA3 #A3583F #58A33F #3F8AA3
split-complementary
#8A3FA3 #8AA33F #3FA358
monochromatic
#3F1D4B #652E77 #8A3FA3 #A85EC1 #C08AD2

Accessibility & contrast

On white

6.32
#8A3FA3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.32
#8A3FA3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FA3
6.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FA3#FFFFFF#000000##FFFFFF
##8A3FA31.006.323.326.32
#FFFFFF6.321.0021.001.00
#0000003.3221.001.0021.00
##FFFFFF6.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#225BA6
Deuteranopia (green-blind)
#4162A1
Tritanopia (blue-blind)
#89506B
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3fa3;
/* rgb */ color: rgb(138, 63, 163);
/* oklch */ color: oklch(50.8% 0.166 316.8);
Tailwind
colors: {
  custom: {
    50: '#af78bf',
    500: '#8a3fa3',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fa3;
$custom-light: #af78bf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fa3",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 163
  },
  "hsl": {
    "h": 285,
    "s": 44.248,
    "l": 44.314
  },
  "oklch": {
    "l": 0.50821,
    "c": 0.16595,
    "h": 316.8
  },
  "luminance": 0.11603
}

Semantic roles & 50–950 ramp

primary
#8A3FA3
secondary
#90BD81
accent
#D45474
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3FA3

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

Preview Lab → · Contrast checker → · Palette generator →

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