#8A2E9C#8A2E9C

#8A2E9C is a mid, vivid purple. Relative luminance 0.098; OKLCH L 48.4% C 0.183 H 320.6°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#8A2E9C
RGBrgb(138, 46, 156)
HSLhsl(290, 54%, 40%)
HSVhsv(290, 71%, 61%)
CMYKcmyk(11.5%, 70.5%, 0%, 38.8%)
CIE-LABlab(37.41, 54.03, -41.46)
CIE-LCHlch(37.41, 68.10, 322.50°)
OKLaboklab(48.4% 0.1412 -0.116)
OKLCHoklch(48.4% 0.183 320.6)
XYZxyz(17.4583, 9.7585, 32.4100)
Luminance0.0976 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E9C #409C2E
analogous
#532E9C #8A2E9C #9C2E77
triadic
#8A2E9C #9C8A2E #2E9C8A
tetradic
#8A2E9C #9C532E #409C2E #2E779C
square
#8A2E9C #9C532E #409C2E #2E779C
split-complementary
#8A2E9C #779C2E #2E9C53
monochromatic
#36123D #60206D #8A2E9C #B140C7 #C470D5

Accessibility & contrast

On white

7.11
#8A2E9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#8A2E9C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E9C
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E9C#FFFFFF#000000##FFFFFF
##8A2E9C1.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00529F
Deuteranopia (green-blind)
#395B99
Tritanopia (blue-blind)
#8B4262
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2e9c;
/* rgb */ color: rgb(138, 46, 156);
/* oklch */ color: oklch(48.4% 0.183 320.6);
Tailwind
colors: {
  custom: {
    50: '#af6fba',
    500: '#8a2e9c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e9c;
$custom-light: #af6fba;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e9c",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 156
  },
  "hsl": {
    "h": 290.182,
    "s": 54.455,
    "l": 39.608
  },
  "oklch": {
    "l": 0.48396,
    "c": 0.18275,
    "h": 320.6
  },
  "luminance": 0.09758
}

Semantic roles & 50–950 ramp

primary
#8A2E9C
secondary
#77BC6A
accent
#DE4A62
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2E9C

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

Preview Lab → · Contrast checker → · Palette generator →

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