#8A2EA6#8A2EA6

#8A2EA6 is a mid, vivid purple. Relative luminance 0.101; OKLCH L 49.1% C 0.192 H 317.1°. Best body text is #FFFFFF at 6.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2EA6
RGBrgb(138, 46, 166)
HSLhsl(286, 57%, 42%)
HSVhsv(286, 72%, 65%)
CMYKcmyk(16.9%, 72.3%, 0%, 34.9%)
CIE-LABlab(38.04, 55.99, -46.46)
CIE-LCHlch(38.04, 72.76, 320.32°)
OKLaboklab(49.05% 0.1406 -0.1306)
OKLCHoklch(49.05% 0.192 317.1)
XYZxyz(18.3401, 10.1112, 37.0546)
Luminance0.1011 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA6 #4AA62E
analogous
#4E2EA6 #8A2EA6 #A62E86
triadic
#8A2EA6 #A68A2E #2EA68A
tetradic
#8A2EA6 #A64E2E #4AA62E #2E86A6
square
#8A2EA6 #A64E2E #4AA62E #2E86A6
split-complementary
#8A2EA6 #86A62E #2EA64E
monochromatic
#3A1346 #622176 #8A2EA6 #AC46CC #C276D9

Accessibility & contrast

On white

6.95
#8A2EA6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#8A2EA6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EA6
6.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA6#FFFFFF#000000##FFFFFF
##8A2EA61.006.953.026.95
#FFFFFF6.951.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0054A9
Deuteranopia (green-blind)
#305CA3
Tritanopia (blue-blind)
#894667
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2ea6;
/* rgb */ color: rgb(138, 46, 166);
/* oklch */ color: oklch(49.1% 0.192 317.1);
Tailwind
colors: {
  custom: {
    50: '#b070c1',
    500: '#8a2ea6',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea6;
$custom-light: #b070c1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea6",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 166
  },
  "hsl": {
    "h": 286,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49054,
    "c": 0.19186,
    "h": 317.1
  },
  "luminance": 0.1011
}

Semantic roles & 50–950 ramp

primary
#8A2EA6
secondary
#82C16F
accent
#E0486B
background
#FBF7FB
surface
#F6EDF7
border
#D0C8D0
text
#110812
muted
#807B81

Preview Lab

Preview with #8A2EA6

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

Preview Lab → · Contrast checker → · Palette generator →

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