#8A2DA4#8A2DA4

#8A2DA4 is a mid, vivid purple. Relative luminance 0.100; OKLCH L 48.8% C 0.191 H 317.8°. Best body text is #FFFFFF at 7.02:1 contrast (WCAG AA passes).

Color values

HEX#8A2DA4
RGBrgb(138, 45, 164)
HSLhsl(287, 57%, 41%)
HSVhsv(287, 73%, 64%)
CMYKcmyk(15.9%, 72.6%, 0%, 35.7%)
CIE-LABlab(37.77, 55.99, -45.69)
CIE-LCHlch(37.77, 72.26, 320.78°)
OKLaboklab(48.82% 0.1417 -0.1283)
OKLCHoklch(48.82% 0.191 317.8)
XYZxyz(18.1195, 9.9612, 36.0830)
Luminance0.0996 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2DA4 #47A42D
analogous
#4E2DA4 #8A2DA4 #A42D82
triadic
#8A2DA4 #A48A2D #2DA48A
tetradic
#8A2DA4 #A44E2D #47A42D #2D82A4
square
#8A2DA4 #A44E2D #47A42D #2D82A4
split-complementary
#8A2DA4 #82A42D #2DA44E
monochromatic
#391344 #622074 #8A2DA4 #AE43CB #C273D9

Accessibility & contrast

On white

7.02
#8A2DA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#8A2DA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2DA4
7.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2DA4#FFFFFF#000000##FFFFFF
##8A2DA41.007.022.997.02
#FFFFFF7.021.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0053A7
Deuteranopia (green-blind)
#325CA1
Tritanopia (blue-blind)
#894566
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #8a2da4;
/* rgb */ color: rgb(138, 45, 164);
/* oklch */ color: oklch(48.8% 0.191 317.8);
Tailwind
colors: {
  custom: {
    50: '#b06fc0',
    500: '#8a2da4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2da4;
$custom-light: #b06fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2da4",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 164
  },
  "hsl": {
    "h": 286.891,
    "s": 56.938,
    "l": 40.98
  },
  "oklch": {
    "l": 0.4882,
    "c": 0.19122,
    "h": 317.8
  },
  "luminance": 0.0996
}

Semantic roles & 50–950 ramp

primary
#8A2DA4
secondary
#7FC06D
accent
#E04869
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2DA4

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

Preview Lab → · Contrast checker → · Palette generator →

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