#8A3F97#8A3F97

#8A3F97 is a mid, vivid purple. Relative luminance 0.112; OKLCH L 50.1% C 0.154 H 321.5°. Best body text is #FFFFFF at 6.48:1 contrast (WCAG AA passes).

Color values

HEX#8A3F97
RGBrgb(138, 63, 151)
HSLhsl(291, 41%, 42%)
HSVhsv(291, 58%, 59%)
CMYKcmyk(8.6%, 58.3%, 0%, 40.8%)
CIE-LABlab(39.90, 45.33, -34.46)
CIE-LCHlch(39.90, 56.95, 322.76°)
OKLaboklab(50.11% 0.1204 -0.0957)
OKLCHoklch(50.11% 0.154 321.5)
XYZxyz(17.8440, 11.1935, 30.4928)
Luminance0.1119 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F97 #4C973F
analogous
#5E3F97 #8A3F97 #973F78
triadic
#8A3F97 #978A3F #3F978A
tetradic
#8A3F97 #975E3F #4C973F #3F7897
square
#8A3F97 #975E3F #4C973F #3F7897
split-complementary
#8A3F97 #78973F #3F975E
monochromatic
#3B1B41 #632D6C #8A3F97 #AC59BA #C185CC

Accessibility & contrast

On white

6.48
#8A3F97 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.24
#8A3F97 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F97
6.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F97#FFFFFF#000000##FFFFFF
##8A3F971.006.483.246.48
#FFFFFF6.481.0021.001.00
#0000003.2421.001.0021.00
##FFFFFF6.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E599A
Deuteranopia (green-blind)
#486195
Tritanopia (blue-blind)
#8B4C65
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3f97;
/* rgb */ color: rgb(138, 63, 151);
/* oklch */ color: oklch(50.1% 0.154 321.5);
Tailwind
colors: {
  custom: {
    50: '#ae78b6',
    500: '#8a3f97',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f97;
$custom-light: #ae78b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f97",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 151
  },
  "hsl": {
    "h": 291.136,
    "s": 41.121,
    "l": 41.961
  },
  "oklch": {
    "l": 0.50111,
    "c": 0.15381,
    "h": 321.5
  },
  "luminance": 0.11193
}

Semantic roles & 50–950 ramp

primary
#8A3F97
secondary
#84B67C
accent
#D15769
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3F97

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

Preview Lab → · Contrast checker → · Palette generator →

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