#8A2DA9#8A2DA9

#8A2DA9 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.2% C 0.196 H 316.2°. Best body text is #FFFFFF at 6.93:1 contrast (WCAG AA passes).

Color values

HEX#8A2DA9
RGBrgb(138, 45, 169)
HSLhsl(285, 58%, 42%)
HSVhsv(285, 73%, 66%)
CMYKcmyk(18.3%, 73.4%, 0%, 33.7%)
CIE-LABlab(38.10, 56.98, -48.16)
CIE-LCHlch(38.10, 74.61, 319.80°)
OKLaboklab(49.16% 0.1412 -0.1356)
OKLCHoklch(49.16% 0.196 316.2)
XYZxyz(18.5799, 10.1454, 38.5080)
Luminance0.1014 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA9 #4CA92D
analogous
#4C2DA9 #8A2DA9 #A92D8A
triadic
#8A2DA9 #A98A2D #2DA98A
tetradic
#8A2DA9 #A94C2D #4CA92D #2D8AA9
square
#8A2DA9 #A94C2D #4CA92D #2D8AA9
split-complementary
#8A2DA9 #8AA92D #2DA94C
monochromatic
#3B1348 #632079 #8A2DA9 #AC46CE #C176DA

Accessibility & contrast

On white

6.93
#8A2DA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.03
#8A2DA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DA9
6.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DA9#FFFFFF#000000##FFFFFF
##8A2DA91.006.933.036.93
#FFFFFF6.931.0021.001.00
#0000003.0321.001.0021.00
##FFFFFF6.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AC
Deuteranopia (green-blind)
#2C5CA6
Tritanopia (blue-blind)
#884769
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2da9;
/* rgb */ color: rgb(138, 45, 169);
/* oklch */ color: oklch(49.2% 0.196 316.2);
Tailwind
colors: {
  custom: {
    50: '#b06fc3',
    500: '#8a2da9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da9;
$custom-light: #b06fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da9",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 169
  },
  "hsl": {
    "h": 285,
    "s": 57.944,
    "l": 41.961
  },
  "oklch": {
    "l": 0.4916,
    "c": 0.19578,
    "h": 316.2
  },
  "luminance": 0.10145
}

Semantic roles & 50–950 ramp

primary
#8A2DA9
secondary
#84C26F
accent
#E1476D
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2DA9

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

Preview Lab → · Contrast checker → · Palette generator →

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