#8A2D9F#8A2D9F

#8A2D9F is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.5% C 0.187 H 319.6°. Best body text is #FFFFFF at 7.10:1 contrast (WCAG AA passes).

Color values

HEX#8A2D9F
RGBrgb(138, 45, 159)
HSLhsl(289, 56%, 40%)
HSVhsv(289, 72%, 62%)
CMYKcmyk(13.2%, 71.7%, 0%, 37.6%)
CIE-LABlab(37.45, 55.01, -43.20)
CIE-LCHlch(37.45, 69.94, 321.86°)
OKLaboklab(48.49% 0.1421 -0.121)
OKLCHoklch(48.49% 0.187 319.6)
XYZxyz(17.6768, 9.7841, 33.7516)
Luminance0.0978 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D9F #429F2D
analogous
#512D9F #8A2D9F #9F2D7B
triadic
#8A2D9F #9F8A2D #2D9F8A
tetradic
#8A2D9F #9F512D #429F2D #2D7B9F
square
#8A2D9F #9F512D #429F2D #2D7B9F
split-complementary
#8A2D9F #7B9F2D #2D9F51
monochromatic
#371240 #61206F #8A2D9F #B040C9 #C470D6

Accessibility & contrast

On white

7.10
#8A2D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.96
#8A2D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D9F
7.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D9F#FFFFFF#000000##FFFFFF
##8A2D9F1.007.102.967.10
#FFFFFF7.101.0021.001.00
#0000002.9621.001.0021.00
##FFFFFF7.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A2
Deuteranopia (green-blind)
#365B9C
Tritanopia (blue-blind)
#8A4363
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2d9f;
/* rgb */ color: rgb(138, 45, 159);
/* oklch */ color: oklch(48.5% 0.187 319.6);
Tailwind
colors: {
  custom: {
    50: '#b06fbc',
    500: '#8a2d9f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d9f;
$custom-light: #b06fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d9f",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 159
  },
  "hsl": {
    "h": 288.947,
    "s": 55.882,
    "l": 40
  },
  "oklch": {
    "l": 0.48489,
    "c": 0.18669,
    "h": 319.6
  },
  "luminance": 0.09783
}

Semantic roles & 50–950 ramp

primary
#8A2D9F
secondary
#79BE6A
accent
#DF4964
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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