#8A2D9E#8A2D9E

#8A2D9E is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.4% C 0.186 H 319.9°. Best body text is #FFFFFF at 7.12:1 contrast (WCAG AA passes).

Color values

HEX#8A2D9E
RGBrgb(138, 45, 158)
HSLhsl(289, 56%, 40%)
HSVhsv(289, 72%, 62%)
CMYKcmyk(12.7%, 71.5%, 0%, 38%)
CIE-LABlab(37.39, 54.81, -42.69)
CIE-LCHlch(37.39, 69.48, 322.08°)
OKLaboklab(48.42% 0.1422 -0.1196)
OKLCHoklch(48.42% 0.186 319.9)
XYZxyz(17.5904, 9.7495, 33.2964)
Luminance0.0975 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D9E #419E2D
analogous
#522D9E #8A2D9E #9E2D79
triadic
#8A2D9E #9E8A2D #2D9E8A
tetradic
#8A2D9E #9E522D #419E2D #2D799E
square
#8A2D9E #9E522D #419E2D #2D799E
split-complementary
#8A2D9E #799E2D #2D9E52
monochromatic
#37123F #601F6E #8A2D9E #B040C9 #C46FD6

Accessibility & contrast

On white

7.12
#8A2D9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A2D9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D9E
7.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D9E#FFFFFF#000000##FFFFFF
##8A2D9E1.007.122.957.12
#FFFFFF7.121.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0052A1
Deuteranopia (green-blind)
#375B9B
Tritanopia (blue-blind)
#8A4262
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2d9e;
/* rgb */ color: rgb(138, 45, 158);
/* oklch */ color: oklch(48.4% 0.186 319.9);
Tailwind
colors: {
  custom: {
    50: '#b06fbb',
    500: '#8a2d9e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d9e;
$custom-light: #b06fbb;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d9e",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 158
  },
  "hsl": {
    "h": 289.381,
    "s": 55.665,
    "l": 39.804
  },
  "oklch": {
    "l": 0.48424,
    "c": 0.18578,
    "h": 319.9
  },
  "luminance": 0.09749
}

Semantic roles & 50–950 ramp

primary
#8A2D9E
secondary
#78BD69
accent
#DF4963
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2D9E

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

Preview Lab → · Contrast checker → · Palette generator →

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