#8A3F96#8A3F96

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

Color values

HEX#8A3F96
RGBrgb(138, 63, 150)
HSLhsl(292, 41%, 42%)
HSVhsv(292, 58%, 59%)
CMYKcmyk(8%, 58%, 0%, 41.2%)
CIE-LABlab(39.85, 45.13, -33.94)
CIE-LCHlch(39.85, 56.47, 323.05°)
OKLaboklab(50.05% 0.1203 -0.0942)
OKLCHoklch(50.05% 0.153 321.9)
XYZxyz(17.7632, 11.1611, 30.0669)
Luminance0.1116 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F96 #4B963F
analogous
#5F3F96 #8A3F96 #963F77
triadic
#8A3F96 #968A3F #3F968A
tetradic
#8A3F96 #965F3F #4B963F #3F7796
square
#8A3F96 #965F3F #4B963F #3F7796
split-complementary
#8A3F96 #77963F #3F965F
monochromatic
#3B1B40 #622D6B #8A3F96 #AC59B9 #C284CB

Accessibility & contrast

On white

6.50
#8A3F96 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#8A3F96 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F96
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F96#FFFFFF#000000##FFFFFF
##8A3F961.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2F5899
Deuteranopia (green-blind)
#496194
Tritanopia (blue-blind)
#8C4C64
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3f96;
/* rgb */ color: rgb(138, 63, 150);
/* oklch */ color: oklch(50.1% 0.153 321.9);
Tailwind
colors: {
  custom: {
    50: '#ae78b5',
    500: '#8a3f96',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f96;
$custom-light: #ae78b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f96",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 150
  },
  "hsl": {
    "h": 291.724,
    "s": 40.845,
    "l": 41.765
  },
  "oklch": {
    "l": 0.50054,
    "c": 0.15282,
    "h": 321.9
  },
  "luminance": 0.1116
}

Semantic roles & 50–950 ramp

primary
#8A3F96
secondary
#83B67B
accent
#D15768
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3F96

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

Preview Lab → · Contrast checker → · Palette generator →

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