#8A3299#8A3299

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

Color values

HEX#8A3299
RGBrgb(138, 50, 153)
HSLhsl(291, 51%, 40%)
HSVhsv(291, 67%, 60%)
CMYKcmyk(9.8%, 67.3%, 0%, 40%)
CIE-LABlab(37.82, 51.78, -38.99)
CIE-LCHlch(37.82, 64.82, 323.02°)
OKLaboklab(48.63% 0.1369 -0.1088)
OKLCHoklch(48.63% 0.175 321.5)
XYZxyz(17.3710, 9.9853, 31.1432)
Luminance0.0998 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3299 #419932
analogous
#563299 #8A3299 #993275
triadic
#8A3299 #998A32 #32998A
tetradic
#8A3299 #995632 #419932 #327599
square
#8A3299 #995632 #419932 #327599
split-complementary
#8A3299 #759932 #329956
monochromatic
#37143D #60236B #8A3299 #B046C2 #C474D2

Accessibility & contrast

On white

7.01
#8A3299 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A3299 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A3299
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3299#FFFFFF#000000##FFFFFF
##8A32991.007.013.007.01
#FFFFFF7.011.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14539C
Deuteranopia (green-blind)
#3E5C96
Tritanopia (blue-blind)
#8B4361
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a3299;
/* rgb */ color: rgb(138, 50, 153);
/* oklch */ color: oklch(48.6% 0.175 321.5);
Tailwind
colors: {
  custom: {
    50: '#af71b7',
    500: '#8a3299',
    950: '#000000',
  },
}
SCSS
$custom: #8a3299;
$custom-light: #af71b7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3299",
  "rgb": {
    "r": 138,
    "g": 50,
    "b": 153
  },
  "hsl": {
    "h": 291.262,
    "s": 50.739,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48632,
    "c": 0.17482,
    "h": 321.5
  },
  "luminance": 0.09984
}

Semantic roles & 50–950 ramp

primary
#8A3299
secondary
#78BA6D
accent
#DA4E62
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A3299

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

Preview Lab → · Contrast checker → · Palette generator →

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