#8A339E#8A339E

#8A339E is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.1% C 0.178 H 319.6°. Best body text is #FFFFFF at 6.89:1 contrast (WCAG AA passes).

Color values

HEX#8A339E
RGBrgb(138, 51, 158)
HSLhsl(289, 51%, 41%)
HSVhsv(289, 68%, 62%)
CMYKcmyk(12.7%, 67.7%, 0%, 38%)
CIE-LABlab(38.27, 52.33, -41.28)
CIE-LCHlch(38.27, 66.66, 321.73°)
OKLaboklab(49.06% 0.1356 -0.1155)
OKLCHoklch(49.06% 0.178 319.6)
XYZxyz(17.8358, 10.2404, 33.3782)
Luminance0.1024 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A339E #479E33
analogous
#54339E #8A339E #9E337C
triadic
#8A339E #9E8A33 #339E8A
tetradic
#8A339E #9E5433 #479E33 #337C9E
square
#8A339E #9E5433 #479E33 #337C9E
split-complementary
#8A339E #7C9E33 #339E54
monochromatic
#391541 #622470 #8A339E #AE4AC4 #C278D3

Accessibility & contrast

On white

6.89
#8A339E on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #8A339E
6.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A339E#FFFFFF#000000##FFFFFF
##8A339E1.006.893.056.89
#FFFFFF6.891.0021.001.00
#0000003.0521.001.0021.00
##FFFFFF6.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B54A1
Deuteranopia (green-blind)
#3B5D9B
Tritanopia (blue-blind)
#8A4664
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a339e;
/* rgb */ color: rgb(138, 51, 158);
/* oklch */ color: oklch(49.1% 0.178 319.6);
Tailwind
colors: {
  custom: {
    50: '#af72bb',
    500: '#8a339e',
    950: '#000000',
  },
}
SCSS
$custom: #8a339e;
$custom-light: #af72bb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a339e",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 158
  },
  "hsl": {
    "h": 288.785,
    "s": 51.196,
    "l": 40.98
  },
  "oklch": {
    "l": 0.49056,
    "c": 0.17813,
    "h": 319.6
  },
  "luminance": 0.1024
}

Semantic roles & 50–950 ramp

primary
#8A339E
secondary
#7FBC71
accent
#DB4D68
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A339E

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

Preview Lab → · Contrast checker → · Palette generator →

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