#8A3F9F#8A3F9F

#8A3F9F is a mid, vivid purple. Relative luminance 0.115; OKLCH L 50.6% C 0.162 H 318.3°. Best body text is #FFFFFF at 6.38:1 contrast (WCAG AA passes).

Color values

HEX#8A3F9F
RGBrgb(138, 63, 159)
HSLhsl(287, 43%, 44%)
HSVhsv(287, 60%, 62%)
CMYKcmyk(13.2%, 60.4%, 0%, 37.6%)
CIE-LABlab(40.35, 46.97, -38.58)
CIE-LCHlch(40.35, 60.78, 320.60°)
OKLaboklab(50.58% 0.1209 -0.1077)
OKLCHoklch(50.58% 0.162 318.3)
XYZxyz(18.5159, 11.4622, 34.0313)
Luminance0.1146 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F9F #549F3F
analogous
#5A3F9F #8A3F9F #9F3F84
triadic
#8A3F9F #9F8A3F #3F9F8A
tetradic
#8A3F9F #9F5A3F #549F3F #3F849F
square
#8A3F9F #9F5A3F #549F3F #3F849F
split-complementary
#8A3F9F #849F3F #3F9F5A
monochromatic
#3E1C47 #642E73 #8A3F9F #A95DBF #C088D0

Accessibility & contrast

On white

6.38
#8A3F9F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.29
#8A3F9F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F9F
6.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F9F#FFFFFF#000000##FFFFFF
##8A3F9F1.006.383.296.38
#FFFFFF6.381.0021.001.00
#0000003.2921.001.0021.00
##FFFFFF6.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#275AA2
Deuteranopia (green-blind)
#44629D
Tritanopia (blue-blind)
#8A4F69
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #8a3f9f;
/* rgb */ color: rgb(138, 63, 159);
/* oklch */ color: oklch(50.6% 0.162 318.3);
Tailwind
colors: {
  custom: {
    50: '#af78bc',
    500: '#8a3f9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f9f;
$custom-light: #af78bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f9f",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 159
  },
  "hsl": {
    "h": 286.875,
    "s": 43.243,
    "l": 43.529
  },
  "oklch": {
    "l": 0.50579,
    "c": 0.16187,
    "h": 318.3
  },
  "luminance": 0.11461
}

Semantic roles & 50–950 ramp

primary
#8A3F9F
secondary
#8CBB7F
accent
#D35570
background
#FBF7FB
surface
#F6EEF6
border
#D0C9D0
text
#110912
muted
#807B81

Preview Lab

Preview with #8A3F9F

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

Preview Lab → · Contrast checker → · Palette generator →

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