#8A2D9D#8A2D9D

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

Color values

HEX#8A2D9D
RGBrgb(138, 45, 157)
HSLhsl(290, 55%, 40%)
HSVhsv(290, 71%, 62%)
CMYKcmyk(12.1%, 71.3%, 0%, 38.4%)
CIE-LABlab(37.33, 54.62, -42.19)
CIE-LCHlch(37.33, 69.02, 322.32°)
OKLaboklab(48.36% 0.1423 -0.1181)
OKLCHoklch(48.36% 0.185 320.3)
XYZxyz(17.5047, 9.7153, 32.8449)
Luminance0.0971 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D9D #409D2D
analogous
#522D9D #8A2D9D #9D2D78
triadic
#8A2D9D #9D8A2D #2D9D8A
tetradic
#8A2D9D #9D522D #409D2D #2D789D
square
#8A2D9D #9D522D #409D2D #2D789D
split-complementary
#8A2D9D #789D2D #2D9D52
monochromatic
#36123E #601F6D #8A2D9D #B13FC8 #C46FD6

Accessibility & contrast

On white

7.14
#8A2D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#8A2D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D9D
7.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D9D#FFFFFF#000000##FFFFFF
##8A2D9D1.007.142.947.14
#FFFFFF7.141.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0051A0
Deuteranopia (green-blind)
#385B9A
Tritanopia (blue-blind)
#8B4262
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2d9d;
/* rgb */ color: rgb(138, 45, 157);
/* oklch */ color: oklch(48.4% 0.185 320.3);
Tailwind
colors: {
  custom: {
    50: '#b06fba',
    500: '#8a2d9d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d9d;
$custom-light: #b06fba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d9d",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 157
  },
  "hsl": {
    "h": 289.821,
    "s": 55.446,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48359,
    "c": 0.18489,
    "h": 320.3
  },
  "luminance": 0.09714
}

Semantic roles & 50–950 ramp

primary
#8A2D9D
secondary
#77BD69
accent
#DF4962
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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