#8A2DA3#8A2DA3

#8A2DA3 is a mid, vivid purple. Relative luminance 0.099; OKLCH L 48.8% C 0.190 H 318.2°. Best body text is #FFFFFF at 7.04:1 contrast (WCAG AA passes).

Color values

HEX#8A2DA3
RGBrgb(138, 45, 163)
HSLhsl(287, 57%, 41%)
HSVhsv(287, 72%, 64%)
CMYKcmyk(15.3%, 72.4%, 0%, 36.1%)
CIE-LABlab(37.71, 55.79, -45.19)
CIE-LCHlch(37.71, 71.80, 320.99°)
OKLaboklab(48.75% 0.1418 -0.1269)
OKLCHoklch(48.75% 0.19 318.2)
XYZxyz(18.0296, 9.9252, 35.6093)
Luminance0.0992 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA3 #46A32D
analogous
#4F2DA3 #8A2DA3 #A32D81
triadic
#8A2DA3 #A38A2D #2DA38A
tetradic
#8A2DA3 #A34F2D #46A32D #2D81A3
square
#8A2DA3 #A34F2D #46A32D #2D81A3
split-complementary
#8A2DA3 #81A32D #2DA34F
monochromatic
#391343 #612073 #8A2DA3 #AE42CB #C372D8

Accessibility & contrast

On white

7.04
#8A2DA3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#8A2DA3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2DA3
7.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DA3#FFFFFF#000000##FFFFFF
##8A2DA31.007.042.987.04
#FFFFFF7.041.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A6
Deuteranopia (green-blind)
#325CA0
Tritanopia (blue-blind)
#894465
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2da3;
/* rgb */ color: rgb(138, 45, 163);
/* oklch */ color: oklch(48.8% 0.190 318.2);
Tailwind
colors: {
  custom: {
    50: '#b06fbf',
    500: '#8a2da3',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da3;
$custom-light: #b06fbf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da3",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 163
  },
  "hsl": {
    "h": 287.288,
    "s": 56.731,
    "l": 40.784
  },
  "oklch": {
    "l": 0.48754,
    "c": 0.19031,
    "h": 318.2
  },
  "luminance": 0.09924
}

Semantic roles & 50–950 ramp

primary
#8A2DA3
secondary
#7EC06C
accent
#E04868
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2DA3

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

Preview Lab → · Contrast checker → · Palette generator →

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