#8A3FA5#8A3FA5

#8A3FA5 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 50.9% C 0.168 H 316.1°. Best body text is #FFFFFF at 6.30:1 contrast (WCAG AA passes).

Color values

HEX#8A3FA5
RGBrgb(138, 63, 165)
HSLhsl(284, 45%, 45%)
HSVhsv(284, 62%, 65%)
CMYKcmyk(16.4%, 61.8%, 0%, 35.3%)
CIE-LABlab(40.70, 48.23, -41.61)
CIE-LCHlch(40.70, 63.70, 319.21°)
OKLaboklab(50.94% 0.121 -0.1165)
OKLCHoklch(50.94% 0.168 316.1)
XYZxyz(19.0492, 11.6756, 36.8402)
Luminance0.1168 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FA5 #5AA53F
analogous
#573FA5 #8A3FA5 #A53F8D
triadic
#8A3FA5 #A58A3F #3FA58A
tetradic
#8A3FA5 #A5573F #5AA53F #3F8DA5
square
#8A3FA5 #A5573F #5AA53F #3F8DA5
split-complementary
#8A3FA5 #8DA53F #3FA557
monochromatic
#401D4C #652E79 #8A3FA5 #A85FC2 #C08CD3

Accessibility & contrast

On white

6.30
#8A3FA5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A3FA5
6.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FA5#FFFFFF#000000##FFFFFF
##8A3FA51.006.303.346.30
#FFFFFF6.301.0021.001.00
#0000003.3421.001.0021.00
##FFFFFF6.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F5BA8
Deuteranopia (green-blind)
#3F62A2
Tritanopia (blue-blind)
#88516C
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3fa5;
/* rgb */ color: rgb(138, 63, 165);
/* oklch */ color: oklch(50.9% 0.168 316.1);
Tailwind
colors: {
  custom: {
    50: '#af79c0',
    500: '#8a3fa5',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fa5;
$custom-light: #af79c0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fa5",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 165
  },
  "hsl": {
    "h": 284.118,
    "s": 44.737,
    "l": 44.706
  },
  "oklch": {
    "l": 0.50943,
    "c": 0.168,
    "h": 316.1
  },
  "luminance": 0.11675
}

Semantic roles & 50–950 ramp

primary
#8A3FA5
secondary
#92BE82
accent
#D45376
background
#FBF7FB
surface
#F6EEF7
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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