#8A2EA4#8A2EA4

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

Color values

HEX#8A2EA4
RGBrgb(138, 46, 164)
HSLhsl(287, 56%, 41%)
HSVhsv(287, 72%, 64%)
CMYKcmyk(15.9%, 72%, 0%, 35.7%)
CIE-LABlab(37.91, 55.59, -45.47)
CIE-LCHlch(37.91, 71.82, 320.72°)
OKLaboklab(48.92% 0.1407 -0.1277)
OKLCHoklch(48.92% 0.19 317.8)
XYZxyz(18.1581, 10.0384, 36.0959)
Luminance0.1004 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA4 #48A42E
analogous
#4F2EA4 #8A2EA4 #A42E83
triadic
#8A2EA4 #A48A2E #2EA48A
tetradic
#8A2EA4 #A44F2E #48A42E #2E83A4
square
#8A2EA4 #A44F2E #48A42E #2E83A4
split-complementary
#8A2EA4 #83A42E #2EA44F
monochromatic
#3A1344 #622174 #8A2EA4 #AD45CB #C274D8

Accessibility & contrast

On white

6.98
#8A2EA4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#8A2EA4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EA4
6.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA4#FFFFFF#000000##FFFFFF
##8A2EA41.006.983.016.98
#FFFFFF6.981.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.981.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: #8a2ea4;
/* rgb */ color: rgb(138, 46, 164);
/* oklch */ color: oklch(48.9% 0.190 317.8);
Tailwind
colors: {
  custom: {
    50: '#b06fc0',
    500: '#8a2ea4',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea4;
$custom-light: #b06fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea4",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 164
  },
  "hsl": {
    "h": 286.78,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.48919,
    "c": 0.19003,
    "h": 317.8
  },
  "luminance": 0.10038
}

Semantic roles & 50–950 ramp

primary
#8A2EA4
secondary
#80C06E
accent
#DF486A
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA4

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

Preview Lab → · Contrast checker → · Palette generator →

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