#8A2EA9#8A2EA9

#8A2EA9 is a mid, vivid purple. Relative luminance 0.102; OKLCH L 49.3% C 0.195 H 316.1°. Best body text is #FFFFFF at 6.90:1 contrast (WCAG AA passes).

Color values

HEX#8A2EA9
RGBrgb(138, 46, 169)
HSLhsl(285, 57%, 42%)
HSVhsv(285, 73%, 66%)
CMYKcmyk(18.3%, 72.8%, 0%, 33.7%)
CIE-LABlab(38.24, 56.59, -47.94)
CIE-LCHlch(38.24, 74.17, 319.74°)
OKLaboklab(49.26% 0.1403 -0.1349)
OKLCHoklch(49.26% 0.195 316.1)
XYZxyz(18.6185, 10.2226, 38.5208)
Luminance0.1022 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2EA9 #4DA92E
analogous
#4D2EA9 #8A2EA9 #A92E8B
triadic
#8A2EA9 #A98A2E #2EA98A
tetradic
#8A2EA9 #A94D2E #4DA92E #2E8BA9
square
#8A2EA9 #A94D2E #4DA92E #2E8BA9
split-complementary
#8A2EA9 #8BA92E #2EA94D
monochromatic
#3B1449 #632179 #8A2EA9 #AB47CD #C177DA

Accessibility & contrast

On white

6.90
#8A2EA9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#8A2EA9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8A2EA9
6.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2EA9#FFFFFF#000000##FFFFFF
##8A2EA91.006.903.046.90
#FFFFFF6.901.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AC
Deuteranopia (green-blind)
#2D5DA6
Tritanopia (blue-blind)
#884869
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #8a2ea9;
/* rgb */ color: rgb(138, 46, 169);
/* oklch */ color: oklch(49.3% 0.195 316.1);
Tailwind
colors: {
  custom: {
    50: '#b070c3',
    500: '#8a2ea9',
    950: '#000000',
  },
}
SCSS
$custom: #8a2ea9;
$custom-light: #b070c3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2ea9",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 169
  },
  "hsl": {
    "h": 284.878,
    "s": 57.209,
    "l": 42.157
  },
  "oklch": {
    "l": 0.49257,
    "c": 0.19462,
    "h": 316.1
  },
  "luminance": 0.10222
}

Semantic roles & 50–950 ramp

primary
#8A2EA9
secondary
#85C271
accent
#E0476E
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110813
muted
#807B82

Preview Lab

Preview with #8A2EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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