#8A3899#8A3899

#8A3899 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.3% C 0.166 H 321.2°. Best body text is #FFFFFF at 6.76:1 contrast (WCAG AA passes).

Color values

HEX#8A3899
RGBrgb(138, 56, 153)
HSLhsl(291, 46%, 41%)
HSVhsv(291, 63%, 60%)
CMYKcmyk(9.8%, 63.4%, 0%, 40%)
CIE-LABlab(38.78, 49.10, -37.45)
CIE-LCHlch(38.78, 61.75, 322.67°)
OKLaboklab(49.33% 0.1296 -0.1043)
OKLCHoklch(49.33% 0.166 321.2)
XYZxyz(17.6445, 10.5324, 31.2344)
Luminance0.1053 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3899 #479938
analogous
#593899 #8A3899 #993877
triadic
#8A3899 #998A38 #38998A
tetradic
#8A3899 #995938 #479938 #387799
square
#8A3899 #995938 #479938 #387799
split-complementary
#8A3899 #779938 #389959
monochromatic
#39173F #62286C #8A3899 #AE4FBF #C27CCF

Accessibility & contrast

On white

6.76
#8A3899 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.11
#8A3899 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3899
6.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3899#FFFFFF#000000##FFFFFF
##8A38991.006.763.116.76
#FFFFFF6.761.0021.001.00
#0000003.1121.001.0021.00
##FFFFFF6.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21559C
Deuteranopia (green-blind)
#425E97
Tritanopia (blue-blind)
#8B4763
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8a3899;
/* rgb */ color: rgb(138, 56, 153);
/* oklch */ color: oklch(49.3% 0.166 321.2);
Tailwind
colors: {
  custom: {
    50: '#af74b7',
    500: '#8a3899',
    950: '#000000',
  },
}
SCSS
$custom: #8a3899;
$custom-light: #af74b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3899",
  "rgb": {
    "r": 138,
    "g": 56,
    "b": 153
  },
  "hsl": {
    "h": 290.722,
    "s": 46.411,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4933,
    "c": 0.16641,
    "h": 321.2
  },
  "luminance": 0.10532
}

Semantic roles & 50–950 ramp

primary
#8A3899
secondary
#7FB874
accent
#D65266
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110911
muted
#807B80

Preview Lab

Preview with #8A3899

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

Preview Lab → · Contrast checker → · Palette generator →

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