#8A2C8C#8A2C8C

#8A2C8C is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.2% C 0.171 H 327.0°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8A2C8C
RGBrgb(138, 44, 140)
HSLhsl(299, 52%, 36%)
HSVhsv(299, 69%, 55%)
CMYKcmyk(1.4%, 68.6%, 0%, 45.1%)
CIE-LABlab(36.17, 51.85, -33.67)
CIE-LCHlch(36.17, 61.82, 327.00°)
OKLaboklab(47.21% 0.1436 -0.0932)
OKLCHoklch(47.21% 0.171 327)
XYZxyz(16.1153, 9.0992, 25.7134)
Luminance0.0910 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C8C #2E8C2C
analogous
#5A2C8C #8A2C8C #8C2C5E
triadic
#8A2C8C #8C8A2C #2C8C8A
tetradic
#8A2C8C #8C5A2C #2E8C2C #2C5E8C
square
#8A2C8C #8C5A2C #2E8C2C #2C5E8C
split-complementary
#8A2C8C #5E8C2C #2C8C5A
monochromatic
#2E0F2F #5C1D5D #8A2C8C #B83BBB #CC64CE

Accessibility & contrast

On white

7.45
#8A2C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A2C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C8C
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C8C#FFFFFF#000000##FFFFFF
##8A2C8C1.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4D8F
Deuteranopia (green-blind)
#42598A
Tritanopia (blue-blind)
#8E3A58
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2c8c;
/* rgb */ color: rgb(138, 44, 140);
/* oklch */ color: oklch(47.2% 0.171 327.0);
Tailwind
colors: {
  custom: {
    50: '#af6eae',
    500: '#8a2c8c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c8c;
$custom-light: #af6eae;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c8c",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 140
  },
  "hsl": {
    "h": 298.75,
    "s": 52.174,
    "l": 36.078
  },
  "oklch": {
    "l": 0.47207,
    "c": 0.17122,
    "h": 327
  },
  "luminance": 0.09098
}

Semantic roles & 50–950 ramp

primary
#8A2C8C
secondary
#61B55F
accent
#DC4C4F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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