#8A3298#8A3298

#8A3298 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.6% C 0.174 H 321.9°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A3298
RGBrgb(138, 50, 152)
HSLhsl(292, 50%, 40%)
HSVhsv(292, 67%, 60%)
CMYKcmyk(9.2%, 67.1%, 0%, 40.4%)
CIE-LABlab(37.76, 51.59, -38.48)
CIE-LCHlch(37.76, 64.36, 323.28°)
OKLaboklab(48.57% 0.1369 -0.1073)
OKLCHoklch(48.57% 0.174 321.9)
XYZxyz(17.2887, 9.9524, 30.7100)
Luminance0.0995 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3298 #409832
analogous
#573298 #8A3298 #983273
triadic
#8A3298 #988A32 #32988A
tetradic
#8A3298 #985732 #409832 #327398
square
#8A3298 #985732 #409832 #327398
split-complementary
#8A3298 #739832 #329857
monochromatic
#36143C #60236A #8A3298 #B145C2 #C473D1

Accessibility & contrast

On white

7.02
#8A3298 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A3298 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3298
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3298#FFFFFF#000000##FFFFFF
##8A32981.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#16529B
Deuteranopia (green-blind)
#3F5C95
Tritanopia (blue-blind)
#8C4361
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3298;
/* rgb */ color: rgb(138, 50, 152);
/* oklch */ color: oklch(48.6% 0.174 321.9);
Tailwind
colors: {
  custom: {
    50: '#af71b7',
    500: '#8a3298',
    950: '#000000',
  },
}
SCSS
$custom: #8a3298;
$custom-light: #af71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3298",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 152
  },
  "hsl": {
    "h": 291.765,
    "s": 50.495,
    "l": 39.608
  },
  "oklch": {
    "l": 0.4857,
    "c": 0.1739,
    "h": 321.9
  },
  "luminance": 0.09951
}

Semantic roles & 50–950 ramp

primary
#8A3298
secondary
#77B96D
accent
#DA4E61
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3298

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

Preview Lab → · Contrast checker → · Palette generator →

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