#8A3FA7#8A3FA7

#8A3FA7 is a mid, vivid purple. Relative luminance 0.117; OKLCH L 51.1% C 0.170 H 315.4°. Best body text is #FFFFFF at 6.27:1 contrast (WCAG AA passes).

Color values

HEX#8A3FA7
RGBrgb(138, 63, 167)
HSLhsl(283, 45%, 45%)
HSVhsv(283, 62%, 65%)
CMYKcmyk(17.4%, 62.3%, 0%, 34.5%)
CIE-LABlab(40.81, 48.65, -42.62)
CIE-LCHlch(40.81, 64.68, 318.78°)
OKLaboklab(51.07% 0.121 -0.1195)
OKLCHoklch(51.07% 0.17 315.4)
XYZxyz(19.2327, 11.7490, 37.8064)
Luminance0.1175 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3FA7 #5CA73F
analogous
#563FA7 #8A3FA7 #A73F90
triadic
#8A3FA7 #A78A3F #3FA78A
tetradic
#8A3FA7 #A7563F #5CA73F #3F90A7
square
#8A3FA7 #A7563F #5CA73F #3F90A7
split-complementary
#8A3FA7 #90A73F #3FA756
monochromatic
#411D4E #652E7B #8A3FA7 #A760C3 #C08DD4

Accessibility & contrast

On white

6.27
#8A3FA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.35
#8A3FA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3FA7
6.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3FA7#FFFFFF#000000##FFFFFF
##8A3FA71.006.273.356.27
#FFFFFF6.271.0021.001.00
#0000003.3521.001.0021.00
##FFFFFF6.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C5CAA
Deuteranopia (green-blind)
#3E62A4
Tritanopia (blue-blind)
#88526D
Achromatopsia (no color)
#606060

Design tokens & code

CSS
--color: #8a3fa7;
/* rgb */ color: rgb(138, 63, 167);
/* oklch */ color: oklch(51.1% 0.170 315.4);
Tailwind
colors: {
  custom: {
    50: '#af79c2',
    500: '#8a3fa7',
    950: '#000000',
  },
}
SCSS
$custom: #8a3fa7;
$custom-light: #af79c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3fa7",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 167
  },
  "hsl": {
    "h": 283.269,
    "s": 45.217,
    "l": 45.098
  },
  "oklch": {
    "l": 0.51068,
    "c": 0.17006,
    "h": 315.4
  },
  "luminance": 0.11748
}

Semantic roles & 50–950 ramp

primary
#8A3FA7
secondary
#94BF83
accent
#D55377
background
#FBF7FC
surface
#F6EEF8
border
#D0C9D1
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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