#8A3296#8A3296

#8A3296 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.4% C 0.172 H 322.7°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#8A3296
RGBrgb(138, 50, 150)
HSLhsl(293, 50%, 39%)
HSVhsv(293, 67%, 59%)
CMYKcmyk(8%, 66.7%, 0%, 41.2%)
CIE-LABlab(37.64, 51.20, -37.45)
CIE-LCHlch(37.64, 63.44, 323.82°)
OKLaboklab(48.45% 0.1369 -0.1043)
OKLCHoklch(48.45% 0.172 322.7)
XYZxyz(17.1263, 9.8874, 29.8546)
Luminance0.0989 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3296 #3E9632
analogous
#583296 #8A3296 #963270
triadic
#8A3296 #968A32 #32968A
tetradic
#8A3296 #965832 #3E9632 #327096
square
#8A3296 #965832 #3E9632 #327096
split-complementary
#8A3296 #709632 #329658
monochromatic
#36133A #602368 #8A3296 #B244C1 #C572D0

Accessibility & contrast

On white

7.05
#8A3296 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A3296 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3296
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3296#FFFFFF#000000##FFFFFF
##8A32961.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#195299
Deuteranopia (green-blind)
#405C93
Tritanopia (blue-blind)
#8C4260
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3296;
/* rgb */ color: rgb(138, 50, 150);
/* oklch */ color: oklch(48.4% 0.172 322.7);
Tailwind
colors: {
  custom: {
    50: '#af71b5',
    500: '#8a3296',
    950: '#000000',
  },
}
SCSS
$custom: #8a3296;
$custom-light: #af71b5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3296",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 150
  },
  "hsl": {
    "h": 292.8,
    "s": 50,
    "l": 39.216
  },
  "oklch": {
    "l": 0.48448,
    "c": 0.17207,
    "h": 322.7
  },
  "luminance": 0.09886
}

Semantic roles & 50–950 ramp

primary
#8A3296
secondary
#75B86C
accent
#DA4E5F
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3296

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

Preview Lab → · Contrast checker → · Palette generator →

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