#8A2D9B#8A2D9B

#8A2D9B is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.183 H 321.0°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A2D9B
RGBrgb(138, 45, 155)
HSLhsl(291, 55%, 39%)
HSVhsv(291, 71%, 61%)
CMYKcmyk(11%, 71%, 0%, 39.2%)
CIE-LABlab(37.20, 54.23, -41.18)
CIE-LCHlch(37.20, 68.10, 322.79°)
OKLaboklab(48.23% 0.1424 -0.1151)
OKLCHoklch(48.23% 0.183 321)
XYZxyz(17.3353, 9.6475, 31.9530)
Luminance0.0965 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D9B #3E9B2D
analogous
#532D9B #8A2D9B #9B2D75
triadic
#8A2D9B #9B8A2D #2D9B8A
tetradic
#8A2D9B #9B532D #3E9B2D #2D759B
square
#8A2D9B #9B532D #3E9B2D #2D759B
split-complementary
#8A2D9B #759B2D #2D9B53
monochromatic
#36113C #601F6C #8A2D9B #B23EC7 #C56ED5

Accessibility & contrast

On white

7.17
#8A2D9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A2D9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D9B
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D9B#FFFFFF#000000##FFFFFF
##8A2D9B1.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00519E
Deuteranopia (green-blind)
#395B98
Tritanopia (blue-blind)
#8B4161
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2d9b;
/* rgb */ color: rgb(138, 45, 155);
/* oklch */ color: oklch(48.2% 0.183 321.0);
Tailwind
colors: {
  custom: {
    50: '#af6fb9',
    500: '#8a2d9b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d9b;
$custom-light: #af6fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d9b",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 155
  },
  "hsl": {
    "h": 290.727,
    "s": 55,
    "l": 39.216
  },
  "oklch": {
    "l": 0.4823,
    "c": 0.1831,
    "h": 321
  },
  "luminance": 0.09647
}

Semantic roles & 50–950 ramp

primary
#8A2D9B
secondary
#75BC68
accent
#DE4960
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2D9B

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

Preview Lab → · Contrast checker → · Palette generator →

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