#8A2C8E#8A2C8E

#8A2C8E is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.3% C 0.173 H 326.2°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8A2C8E
RGBrgb(138, 44, 142)
HSLhsl(298, 53%, 36%)
HSVhsv(298, 69%, 56%)
CMYKcmyk(2.8%, 69%, 0%, 44.3%)
CIE-LABlab(36.29, 52.21, -34.71)
CIE-LCHlch(36.29, 62.70, 326.38°)
OKLaboklab(47.33% 0.1437 -0.0963)
OKLCHoklch(47.33% 0.173 326.2)
XYZxyz(16.2641, 9.1587, 26.4971)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C8E #308E2C
analogous
#592C8E #8A2C8E #8E2C61
triadic
#8A2C8E #8E8A2C #2C8E8A
tetradic
#8A2C8E #8E592C #308E2C #2C618E
square
#8A2C8E #8E592C #308E2C #2C618E
split-complementary
#8A2C8E #618E2C #2C8E59
monochromatic
#2F0F31 #5D1E5F #8A2C8E #B73ABD #CB65CF

Accessibility & contrast

On white

7.42
#8A2C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A2C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C8E
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C8E#FFFFFF#000000##FFFFFF
##8A2C8E1.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194E91
Deuteranopia (green-blind)
#41598B
Tritanopia (blue-blind)
#8E3B59
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2c8e;
/* rgb */ color: rgb(138, 44, 142);
/* oklch */ color: oklch(47.3% 0.173 326.2);
Tailwind
colors: {
  custom: {
    50: '#af6eaf',
    500: '#8a2c8e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c8e;
$custom-light: #af6eaf;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c8e",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 142
  },
  "hsl": {
    "h": 297.551,
    "s": 52.688,
    "l": 36.471
  },
  "oklch": {
    "l": 0.47325,
    "c": 0.17294,
    "h": 326.2
  },
  "luminance": 0.09158
}

Semantic roles & 50–950 ramp

primary
#8A2C8E
secondary
#64B660
accent
#DC4C52
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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