#8A2DA5#8A2DA5

#8A2DA5 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.9% C 0.192 H 317.5°. Best body text is #FFFFFF at 7.00:1 contrast (WCAG AA passes).

Color values

HEX#8A2DA5
RGBrgb(138, 45, 165)
HSLhsl(287, 57%, 41%)
HSVhsv(287, 73%, 65%)
CMYKcmyk(16.4%, 72.7%, 0%, 35.3%)
CIE-LABlab(37.84, 56.19, -46.19)
CIE-LCHlch(37.84, 72.73, 320.58°)
OKLaboklab(48.89% 0.1417 -0.1298)
OKLCHoklch(48.89% 0.192 317.5)
XYZxyz(18.2102, 9.9974, 36.5605)
Luminance0.1000 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA5 #48A52D
analogous
#4E2DA5 #8A2DA5 #A52D84
triadic
#8A2DA5 #A58A2D #2DA58A
tetradic
#8A2DA5 #A54E2D #48A52D #2D84A5
square
#8A2DA5 #A54E2D #48A52D #2D84A5
split-complementary
#8A2DA5 #84A52D #2DA54E
monochromatic
#3A1345 #622075 #8A2DA5 #AD43CC #C273D9

Accessibility & contrast

On white

7.00
#8A2DA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

3.00
#8A2DA5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DA5
7.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DA5#FFFFFF#000000##FFFFFF
##8A2DA51.007.003.007.00
#FFFFFF7.001.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF7.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A8
Deuteranopia (green-blind)
#315CA2
Tritanopia (blue-blind)
#894566
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2da5;
/* rgb */ color: rgb(138, 45, 165);
/* oklch */ color: oklch(48.9% 0.192 317.5);
Tailwind
colors: {
  custom: {
    50: '#b06fc0',
    500: '#8a2da5',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da5;
$custom-light: #b06fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da5",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 165
  },
  "hsl": {
    "h": 286.5,
    "s": 57.143,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48888,
    "c": 0.19213,
    "h": 317.5
  },
  "luminance": 0.09997
}

Semantic roles & 50–950 ramp

primary
#8A2DA5
secondary
#80C16D
accent
#E0476A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2DA5

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

Preview Lab → · Contrast checker → · Palette generator →

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