#8A338A#8A338A

#8A338A is a mid, vivid purple. Relative luminance 0.096; OKLCH L 47.9% C 0.160 H 327.7°. Best body text is #FFFFFF at 7.19:1 contrast (WCAG AA passes).

Color values

HEX#8A338A
RGBrgb(138, 51, 138)
HSLhsl(300, 46%, 37%)
HSVhsv(300, 63%, 54%)
CMYKcmyk(0%, 63%, 0%, 45.9%)
CIE-LABlab(37.13, 48.52, -30.93)
CIE-LCHlch(37.13, 57.54, 327.48°)
OKLaboklab(47.86% 0.1352 -0.0854)
OKLCHoklch(47.86% 0.16 327.7)
XYZxyz(16.2523, 9.6070, 25.0381)
Luminance0.0961 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A338A #338A33
analogous
#5F338A #8A338A #8A335F
triadic
#8A338A #8A8A33 #338A8A
tetradic
#8A338A #8A5F33 #338A33 #335F8A
square
#8A338A #8A5F33 #338A33 #335F8A
split-complementary
#8A338A #5F8A33 #338A5F
monochromatic
#311231 #5D225D #8A338A #B744B7 #C96EC9

Accessibility & contrast

On white

7.19
#8A338A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A338A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A338A
7.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A338A#FFFFFF#000000##FFFFFF
##8A338A1.007.192.927.19
#FFFFFF7.191.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28508D
Deuteranopia (green-blind)
#485B88
Tritanopia (blue-blind)
#8E3E5A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a338a;
/* rgb */ color: rgb(138, 51, 138);
/* oklch */ color: oklch(47.9% 0.160 327.7);
Tailwind
colors: {
  custom: {
    50: '#af71ac',
    500: '#8a338a',
    950: '#000000',
  },
}
SCSS
$custom: #8a338a;
$custom-light: #af71ac;
$custom-dark: #000000;
JSON
{
  "hex": "#8a338a",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 138
  },
  "hsl": {
    "h": 300,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47861,
    "c": 0.15986,
    "h": 327.7
  },
  "luminance": 0.09606
}

Semantic roles & 50–950 ramp

primary
#8A338A
secondary
#67B167
accent
#D65252
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A338A

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

Preview Lab → · Contrast checker → · Palette generator →

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