#8A2D99#8A2D99

#8A2D99 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.181 H 321.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#8A2D99
RGBrgb(138, 45, 153)
HSLhsl(292, 55%, 39%)
HSVhsv(292, 71%, 60%)
CMYKcmyk(9.8%, 70.6%, 0%, 40%)
CIE-LABlab(37.08, 53.85, -40.16)
CIE-LCHlch(37.08, 67.18, 323.28°)
OKLaboklab(48.1% 0.1425 -0.1122)
OKLCHoklch(48.1% 0.181 321.8)
XYZxyz(17.1688, 9.5809, 31.0758)
Luminance0.0958 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D99 #3C992D
analogous
#542D99 #8A2D99 #992D72
triadic
#8A2D99 #998A2D #2D998A
tetradic
#8A2D99 #99542D #3C992D #2D7299
square
#8A2D99 #99542D #3C992D #2D7299
split-complementary
#8A2D99 #72992D #2D9954
monochromatic
#35113A #5F1F6A #8A2D99 #B33DC6 #C66CD4

Accessibility & contrast

On white

7.20
#8A2D99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8A2D99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D99
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D99#FFFFFF#000000##FFFFFF
##8A2D991.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#04519C
Deuteranopia (green-blind)
#3B5B96
Tritanopia (blue-blind)
#8B4060
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2d99;
/* rgb */ color: rgb(138, 45, 153);
/* oklch */ color: oklch(48.1% 0.181 321.8);
Tailwind
colors: {
  custom: {
    50: '#af6fb7',
    500: '#8a2d99',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d99;
$custom-light: #af6fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d99",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 153
  },
  "hsl": {
    "h": 291.667,
    "s": 54.545,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48103,
    "c": 0.18131,
    "h": 321.8
  },
  "luminance": 0.0958
}

Semantic roles & 50–950 ramp

primary
#8A2D99
secondary
#73BB67
accent
#DE4A5E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2D99

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

Preview Lab → · Contrast checker → · Palette generator →

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