#8A2EAB#8A2EAB

#8A2EAB is a mid, vivid purple. Relative luminance 0.103; OKLCH L 49.4% C 0.196 H 315.5°. Best body text is #FFFFFF at 6.86:1 contrast (WCAG AA passes).

Color values

HEX#8A2EAB
RGBrgb(138, 46, 171)
HSLhsl(284, 58%, 43%)
HSVhsv(284, 73%, 67%)
CMYKcmyk(19.3%, 73.1%, 0%, 32.9%)
CIE-LABlab(38.37, 57.00, -48.92)
CIE-LCHlch(38.37, 75.11, 319.37°)
OKLaboklab(49.4% 0.14 -0.1378)
OKLCHoklch(49.4% 0.196 315.5)
XYZxyz(18.8077, 10.2982, 39.5172)
Luminance0.1030 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EAB #4FAB2E
analogous
#4B2EAB #8A2EAB #AB2E8E
triadic
#8A2EAB #AB8A2E #2EAB8A
tetradic
#8A2EAB #AB4B2E #4FAB2E #2E8EAB
square
#8A2EAB #AB4B2E #4FAB2E #2E8EAB
split-complementary
#8A2EAB #8EAB2E #2EAB4B
monochromatic
#3C144B #63217B #8A2EAB #AB48CE #C179DB

Accessibility & contrast

On white

6.86
#8A2EAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#8A2EAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EAB
6.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EAB#FFFFFF#000000##FFFFFF
##8A2EAB1.006.863.066.86
#FFFFFF6.861.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AF
Deuteranopia (green-blind)
#2B5DA8
Tritanopia (blue-blind)
#87486A
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2eab;
/* rgb */ color: rgb(138, 46, 171);
/* oklch */ color: oklch(49.4% 0.196 315.5);
Tailwind
colors: {
  custom: {
    50: '#b070c5',
    500: '#8a2eab',
    950: '#000000',
  },
}
SCSS
$custom: #8a2eab;
$custom-light: #b070c5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2eab",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 171
  },
  "hsl": {
    "h": 284.16,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.49395,
    "c": 0.19646,
    "h": 315.5
  },
  "luminance": 0.10298
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #8A2EAB

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

Preview Lab → · Contrast checker → · Palette generator →

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