#8A3380#8A3380

#8A3380 is a mid, vivid purple. Relative luminance 0.093; OKLCH L 47.3% C 0.151 H 332.5°. Best body text is #FFFFFF at 7.33:1 contrast (WCAG AA passes).

Color values

HEX#8A3380
RGBrgb(138, 51, 128)
HSLhsl(307, 46%, 37%)
HSVhsv(307, 63%, 54%)
CMYKcmyk(0%, 63%, 7.2%, 45.9%)
CIE-LABlab(36.61, 46.75, -25.57)
CIE-LCHlch(36.61, 53.28, 331.32°)
OKLaboklab(47.32% 0.1341 -0.0699)
OKLCHoklch(47.32% 0.151 332.5)
XYZxyz(15.5613, 9.3306, 21.3993)
Luminance0.0933 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A3380 #338A3D
analogous
#69338A #8A3380 #8A3354
triadic
#8A3380 #808A33 #33808A
tetradic
#8A3380 #8A6933 #338A3D #33548A
square
#8A3380 #8A6933 #338A3D #33548A
split-complementary
#8A3380 #548A33 #338A69
monochromatic
#31122D #5D2257 #8A3380 #B744A9 #C96EBF

Accessibility & contrast

On white

7.33
#8A3380 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#8A3380 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A3380
7.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A3380#FFFFFF#000000##FFFFFF
##8A33801.007.332.877.33
#FFFFFF7.331.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#304E82
Deuteranopia (green-blind)
#4C5B7E
Tritanopia (blue-blind)
#903A54
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #8a3380;
/* rgb */ color: rgb(138, 51, 128);
/* oklch */ color: oklch(47.3% 0.151 332.5);
Tailwind
colors: {
  custom: {
    50: '#af71a5',
    500: '#8a3380',
    950: '#000000',
  },
}
SCSS
$custom: #8a3380;
$custom-light: #af71a5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a3380",
  "rgb": {
    "r": 138,
    "g": 51,
    "b": 128
  },
  "hsl": {
    "h": 306.897,
    "s": 46.032,
    "l": 37.059
  },
  "oklch": {
    "l": 0.47319,
    "c": 0.15125,
    "h": 332.5
  },
  "luminance": 0.09329
}

Semantic roles & 50–950 ramp

primary
#8A3380
secondary
#67B170
accent
#D66152
background
#FBF7FA
surface
#F6EDF4
border
#D0C8CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A3380

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

Preview Lab → · Contrast checker → · Palette generator →

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