#8A2EAC#8A2EAC

#8A2EAC is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.5% C 0.197 H 315.1°. Best body text is #FFFFFF at 6.85:1 contrast (WCAG AA passes).

Color values

HEX#8A2EAC
RGBrgb(138, 46, 172)
HSLhsl(284, 58%, 43%)
HSVhsv(284, 73%, 67%)
CMYKcmyk(19.8%, 73.3%, 0%, 32.5%)
CIE-LABlab(38.44, 57.20, -49.40)
CIE-LCHlch(38.44, 75.58, 319.18°)
OKLaboklab(49.46% 0.1399 -0.1392)
OKLCHoklch(49.46% 0.197 315.1)
XYZxyz(18.9034, 10.3365, 40.0211)
Luminance0.1034 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EAC #50AC2E
analogous
#4B2EAC #8A2EAC #AC2E8F
triadic
#8A2EAC #AC8A2E #2EAC8A
tetradic
#8A2EAC #AC4B2E #50AC2E #2E8FAC
square
#8A2EAC #AC4B2E #50AC2E #2E8FAC
split-complementary
#8A2EAC #8FAC2E #2EAC4B
monochromatic
#3D144B #63217C #8A2EAC #AA49CE #C179DB

Accessibility & contrast

On white

6.85
#8A2EAC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#8A2EAC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EAC
6.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EAC#FFFFFF#000000##FFFFFF
##8A2EAC1.006.853.076.85
#FFFFFF6.851.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055B0
Deuteranopia (green-blind)
#2A5DA9
Tritanopia (blue-blind)
#87496A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2eac;
/* rgb */ color: rgb(138, 46, 172);
/* oklch */ color: oklch(49.5% 0.197 315.1);
Tailwind
colors: {
  custom: {
    50: '#b070c5',
    500: '#8a2eac',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eac;
$custom-light: #b070c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eac",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 172
  },
  "hsl": {
    "h": 283.81,
    "s": 57.798,
    "l": 42.745
  },
  "oklch": {
    "l": 0.49464,
    "c": 0.19738,
    "h": 315.1
  },
  "luminance": 0.10336
}

Semantic roles & 50–950 ramp

primary
#8A2EAC
secondary
#88C372
accent
#E14770
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2EAC

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

Preview Lab → · Contrast checker → · Palette generator →

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