#8A2DA8#8A2DA8

#8A2DA8 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.195 H 316.5°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2DA8
RGBrgb(138, 45, 168)
HSLhsl(285, 58%, 42%)
HSVhsv(285, 73%, 66%)
CMYKcmyk(17.9%, 73.2%, 0%, 34.1%)
CIE-LABlab(38.04, 56.78, -47.67)
CIE-LCHlch(38.04, 74.14, 319.99°)
OKLaboklab(49.09% 0.1414 -0.1341)
OKLCHoklch(49.09% 0.195 316.5)
XYZxyz(18.4864, 10.1079, 38.0154)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA8 #4BA82D
analogous
#4D2DA8 #8A2DA8 #A82D89
triadic
#8A2DA8 #A88A2D #2DA88A
tetradic
#8A2DA8 #A84D2D #4BA82D #2D89A8
square
#8A2DA8 #A84D2D #4BA82D #2D89A8
split-complementary
#8A2DA8 #89A82D #2DA84D
monochromatic
#3B1347 #622078 #8A2DA8 #AC45CD #C275DA

Accessibility & contrast

On white

6.95
#8A2DA8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A2DA8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2DA8
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DA8#FFFFFF#000000##FFFFFF
##8A2DA81.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054AB
Deuteranopia (green-blind)
#2D5CA5
Tritanopia (blue-blind)
#884768
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2da8;
/* rgb */ color: rgb(138, 45, 168);
/* oklch */ color: oklch(49.1% 0.195 316.5);
Tailwind
colors: {
  custom: {
    50: '#b06fc2',
    500: '#8a2da8',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da8;
$custom-light: #b06fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da8",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 168
  },
  "hsl": {
    "h": 285.366,
    "s": 57.746,
    "l": 41.765
  },
  "oklch": {
    "l": 0.49091,
    "c": 0.19486,
    "h": 316.5
  },
  "luminance": 0.10107
}

Semantic roles & 50–950 ramp

primary
#8A2DA8
secondary
#83C26F
accent
#E1476C
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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