#8A3F99#8A3F99

#8A3F99 is a mid, vivid purple. Relative luminance 0.113; OKLCH L 50.2% C 0.156 H 320.7°. Best body text is #FFFFFF at 6.46:1 contrast (WCAG AA passes).

Color values

HEX#8A3F99
RGBrgb(138, 63, 153)
HSLhsl(290, 42%, 42%)
HSVhsv(290, 59%, 60%)
CMYKcmyk(9.8%, 58.8%, 0%, 40%)
CIE-LABlab(40.01, 45.74, -35.50)
CIE-LCHlch(40.01, 57.90, 322.18°)
OKLaboklab(50.23% 0.1206 -0.0987)
OKLCHoklch(50.23% 0.156 320.7)
XYZxyz(18.0078, 11.2590, 31.3555)
Luminance0.1126 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3F99 #4E993F
analogous
#5D3F99 #8A3F99 #993F7B
triadic
#8A3F99 #998A3F #3F998A
tetradic
#8A3F99 #995D3F #4E993F #3F7B99
square
#8A3F99 #995D3F #4E993F #3F7B99
split-complementary
#8A3F99 #7B993F #3F995D
monochromatic
#3C1B42 #632D6E #8A3F99 #AB5ABB #C185CD

Accessibility & contrast

On white

6.46
#8A3F99 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.25
#8A3F99 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3F99
6.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3F99#FFFFFF#000000##FFFFFF
##8A3F991.006.463.256.46
#FFFFFF6.461.0021.001.00
#0000003.2521.001.0021.00
##FFFFFF6.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D599C
Deuteranopia (green-blind)
#476197
Tritanopia (blue-blind)
#8B4D66
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #8a3f99;
/* rgb */ color: rgb(138, 63, 153);
/* oklch */ color: oklch(50.2% 0.156 320.7);
Tailwind
colors: {
  custom: {
    50: '#af78b7',
    500: '#8a3f99',
    950: '#000000',
  },
}
SCSS
$custom: #8a3f99;
$custom-light: #af78b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3f99",
  "rgb": {
    "r": 138,
    "g": 63,
    "b": 153
  },
  "hsl": {
    "h": 290,
    "s": 41.667,
    "l": 42.353
  },
  "oklch": {
    "l": 0.50226,
    "c": 0.15582,
    "h": 320.7
  },
  "luminance": 0.11258
}

Semantic roles & 50–950 ramp

primary
#8A3F99
secondary
#86B77C
accent
#D1566B
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3F99

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

Preview Lab → · Contrast checker → · Palette generator →

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