#8A3297#8A3297

#8A3297 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.5% C 0.173 H 322.3°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8A3297
RGBrgb(138, 50, 151)
HSLhsl(292, 50%, 39%)
HSVhsv(292, 67%, 59%)
CMYKcmyk(8.6%, 66.9%, 0%, 40.8%)
CIE-LABlab(37.70, 51.40, -37.96)
CIE-LCHlch(37.70, 63.90, 323.55°)
OKLaboklab(48.51% 0.1369 -0.1058)
OKLCHoklch(48.51% 0.173 322.3)
XYZxyz(17.2072, 9.9198, 30.2805)
Luminance0.0992 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3297 #3F9732
analogous
#583297 #8A3297 #973272
triadic
#8A3297 #978A32 #32978A
tetradic
#8A3297 #975832 #3F9732 #327297
square
#8A3297 #975832 #3F9732 #327297
split-complementary
#8A3297 #729732 #329758
monochromatic
#36143B #602369 #8A3297 #B145C1 #C573D1

Accessibility & contrast

On white

7.04
#8A3297 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A3297
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3297#FFFFFF#000000##FFFFFF
##8A32971.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#18529A
Deuteranopia (green-blind)
#3F5C94
Tritanopia (blue-blind)
#8C4360
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3297;
/* rgb */ color: rgb(138, 50, 151);
/* oklch */ color: oklch(48.5% 0.173 322.3);
Tailwind
colors: {
  custom: {
    50: '#af71b6',
    500: '#8a3297',
    950: '#000000',
  },
}
SCSS
$custom: #8a3297;
$custom-light: #af71b6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3297",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 151
  },
  "hsl": {
    "h": 292.277,
    "s": 50.249,
    "l": 39.412
  },
  "oklch": {
    "l": 0.48509,
    "c": 0.17299,
    "h": 322.3
  },
  "luminance": 0.09919
}

Semantic roles & 50–950 ramp

primary
#8A3297
secondary
#76B96C
accent
#DA4E60
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3297

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

Preview Lab → · Contrast checker → · Palette generator →

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