#8A339F#8A339F

#8A339F is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.1% C 0.179 H 319.2°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#8A339F
RGBrgb(138, 51, 159)
HSLhsl(288, 51%, 41%)
HSVhsv(288, 68%, 62%)
CMYKcmyk(13.2%, 67.9%, 0%, 37.6%)
CIE-LABlab(38.33, 52.53, -41.79)
CIE-LCHlch(38.33, 67.13, 321.50°)
OKLaboklab(49.12% 0.1356 -0.117)
OKLCHoklch(49.12% 0.179 319.2)
XYZxyz(17.9223, 10.2750, 33.8334)
Luminance0.1027 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A339F #489F33
analogous
#54339F #8A339F #9F337E
triadic
#8A339F #9F8A33 #339F8A
tetradic
#8A339F #9F5433 #489F33 #337E9F
square
#8A339F #9F5433 #489F33 #337E9F
split-complementary
#8A339F #7E9F33 #339F54
monochromatic
#3A1542 #622471 #8A339F #AD4AC5 #C279D4

Accessibility & contrast

On white

6.87
#8A339F on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.05
#8A339F on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A339F
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A339F#FFFFFF#000000##FFFFFF
##8A339F1.006.873.056.87
#FFFFFF6.871.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0854A2
Deuteranopia (green-blind)
#3A5D9C
Tritanopia (blue-blind)
#8A4665
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a339f;
/* rgb */ color: rgb(138, 51, 159);
/* oklch */ color: oklch(49.1% 0.179 319.2);
Tailwind
colors: {
  custom: {
    50: '#af72bc',
    500: '#8a339f',
    950: '#000000',
  },
}
SCSS
$custom: #8a339f;
$custom-light: #af72bc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a339f",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 159
  },
  "hsl": {
    "h": 288.333,
    "s": 51.429,
    "l": 41.176
  },
  "oklch": {
    "l": 0.49119,
    "c": 0.17907,
    "h": 319.2
  },
  "luminance": 0.10274
}

Semantic roles & 50–950 ramp

primary
#8A339F
secondary
#80BC71
accent
#DB4D69
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A339F

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

Preview Lab → · Contrast checker → · Palette generator →

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