#8A339D#8A339D

#8A339D is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.0% C 0.177 H 320.0°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#8A339D
RGBrgb(138, 51, 157)
HSLhsl(289, 51%, 41%)
HSVhsv(289, 68%, 62%)
CMYKcmyk(12.1%, 67.5%, 0%, 38.4%)
CIE-LABlab(38.21, 52.13, -40.78)
CIE-LCHlch(38.21, 66.19, 321.97°)
OKLaboklab(48.99% 0.1357 -0.114)
OKLCHoklch(48.99% 0.177 320)
XYZxyz(17.7501, 10.2061, 32.9268)
Luminance0.1021 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A339D #469D33
analogous
#55339D #8A339D #9D337B
triadic
#8A339D #9D8A33 #339D8A
tetradic
#8A339D #9D5533 #469D33 #337B9D
square
#8A339D #9D5533 #469D33 #337B9D
split-complementary
#8A339D #7B9D33 #339D55
monochromatic
#391541 #61246F #8A339D #AE49C4 #C377D3

Accessibility & contrast

On white

6.91
#8A339D on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A339D on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A339D
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A339D#FFFFFF#000000##FFFFFF
##8A339D1.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E54A0
Deuteranopia (green-blind)
#3C5D9A
Tritanopia (blue-blind)
#8B4664
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a339d;
/* rgb */ color: rgb(138, 51, 157);
/* oklch */ color: oklch(49.0% 0.177 320.0);
Tailwind
colors: {
  custom: {
    50: '#af72ba',
    500: '#8a339d',
    950: '#000000',
  },
}
SCSS
$custom: #8a339d;
$custom-light: #af72ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a339d",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 157
  },
  "hsl": {
    "h": 289.245,
    "s": 50.962,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48993,
    "c": 0.1772,
    "h": 320
  },
  "luminance": 0.10205
}

Semantic roles & 50–950 ramp

primary
#8A339D
secondary
#7EBB70
accent
#DA4D67
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A339D

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

Preview Lab → · Contrast checker → · Palette generator →

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