#8A339C#8A339C

#8A339C is a mid, vivid purple. Relative luminance 0.102; OKLCH L 48.9% C 0.176 H 320.3°. Best body text is #FFFFFF at 6.92:1 contrast (WCAG AA passes).

Color values

HEX#8A339C
RGBrgb(138, 51, 156)
HSLhsl(290, 51%, 41%)
HSVhsv(290, 67%, 61%)
CMYKcmyk(11.5%, 67.3%, 0%, 38.8%)
CIE-LABlab(38.15, 51.94, -40.27)
CIE-LCHlch(38.15, 65.72, 322.21°)
OKLaboklab(48.93% 0.1357 -0.1125)
OKLCHoklch(48.93% 0.176 320.3)
XYZxyz(17.6651, 10.1721, 32.4790)
Luminance0.1017 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A339C #459C33
analogous
#55339C #8A339C #9C3379
triadic
#8A339C #9C8A33 #339C8A
tetradic
#8A339C #9C5533 #459C33 #33799C
square
#8A339C #9C5533 #459C33 #33799C
split-complementary
#8A339C #799C33 #339C55
monochromatic
#381540 #61246E #8A339C #AE49C3 #C377D3

Accessibility & contrast

On white

6.92
#8A339C on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A339C on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A339C
6.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A339C#FFFFFF#000000##FFFFFF
##8A339C1.006.923.036.92
#FFFFFF6.921.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#11549F
Deuteranopia (green-blind)
#3D5D99
Tritanopia (blue-blind)
#8B4563
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a339c;
/* rgb */ color: rgb(138, 51, 156);
/* oklch */ color: oklch(48.9% 0.176 320.3);
Tailwind
colors: {
  custom: {
    50: '#af72ba',
    500: '#8a339c',
    950: '#000000',
  },
}
SCSS
$custom: #8a339c;
$custom-light: #af72ba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a339c",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 156
  },
  "hsl": {
    "h": 289.714,
    "s": 50.725,
    "l": 40.588
  },
  "oklch": {
    "l": 0.4893,
    "c": 0.17626,
    "h": 320.3
  },
  "luminance": 0.10171
}

Semantic roles & 50–950 ramp

primary
#8A339C
secondary
#7DBB70
accent
#DA4E66
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A339C

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

Preview Lab → · Contrast checker → · Palette generator →

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