#8A3295#8A3295

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

Color values

HEX#8A3295
RGBrgb(138, 50, 149)
HSLhsl(293, 50%, 39%)
HSVhsv(293, 66%, 58%)
CMYKcmyk(7.4%, 66.4%, 0%, 41.6%)
CIE-LABlab(37.58, 51.01, -36.93)
CIE-LCHlch(37.58, 62.98, 324.09°)
OKLaboklab(48.39% 0.1369 -0.1028)
OKLCHoklch(48.39% 0.171 323.1)
XYZxyz(17.0461, 9.8554, 29.4324)
Luminance0.0985 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3295 #3D9532
analogous
#593295 #8A3295 #95326F
triadic
#8A3295 #958A32 #32958A
tetradic
#8A3295 #955932 #3D9532 #326F95
square
#8A3295 #955932 #3D9532 #326F95
split-complementary
#8A3295 #6F9532 #329559
monochromatic
#351339 #602367 #8A3295 #B244C0 #C572D0

Accessibility & contrast

On white

7.07
#8A3295 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#8A3295 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3295
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3295#FFFFFF#000000##FFFFFF
##8A32951.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B5298
Deuteranopia (green-blind)
#415C92
Tritanopia (blue-blind)
#8C425F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a3295;
/* rgb */ color: rgb(138, 50, 149);
/* oklch */ color: oklch(48.4% 0.171 323.1);
Tailwind
colors: {
  custom: {
    50: '#af71b4',
    500: '#8a3295',
    950: '#000000',
  },
}
SCSS
$custom: #8a3295;
$custom-light: #af71b4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3295",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 149
  },
  "hsl": {
    "h": 293.333,
    "s": 49.749,
    "l": 39.02
  },
  "oklch": {
    "l": 0.48388,
    "c": 0.17116,
    "h": 323.1
  },
  "luminance": 0.09854
}

Semantic roles & 50–950 ramp

primary
#8A3295
secondary
#74B86B
accent
#D94F5E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3295

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

Preview Lab → · Contrast checker → · Palette generator →

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