#8A2C7F#8A2C7F

#8A2C7F is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.5% C 0.160 H 332.9°. Best body text is #FFFFFF at 7.64:1 contrast (WCAG AA passes).

Color values

HEX#8A2C7F
RGBrgb(138, 44, 127)
HSLhsl(307, 52%, 36%)
HSVhsv(307, 68%, 54%)
CMYKcmyk(0%, 68.1%, 8%, 45.9%)
CIE-LABlab(35.48, 49.60, -26.73)
CIE-LCHlch(35.48, 56.34, 331.68°)
OKLaboklab(46.48% 0.1428 -0.0732)
OKLCHoklch(46.48% 0.16 332.9)
XYZxyz(15.2127, 8.7381, 20.9600)
Luminance0.0874 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C7F #2C8A37
analogous
#662C8A #8A2C7F #8A2C50
triadic
#8A2C7F #7F8A2C #2C7F8A
tetradic
#8A2C7F #8A662C #2C8A37 #2C508A
square
#8A2C7F #8A662C #2C8A37 #2C508A
split-complementary
#8A2C7F #508A2C #2C8A66
monochromatic
#2D0E2A #5C1D54 #8A2C7F #B83BAA #CD63C1

Accessibility & contrast

On white

7.64
#8A2C7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.75
#8A2C7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C7F
7.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C7F#FFFFFF#000000##FFFFFF
##8A2C7F1.007.642.757.64
#FFFFFF7.641.0021.001.00
#0000002.7521.001.0021.00
##FFFFFF7.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294B81
Deuteranopia (green-blind)
#49587D
Tritanopia (blue-blind)
#903451
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2c7f;
/* rgb */ color: rgb(138, 44, 127);
/* oklch */ color: oklch(46.5% 0.160 332.9);
Tailwind
colors: {
  custom: {
    50: '#af6da4',
    500: '#8a2c7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c7f;
$custom-light: #af6da4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c7f",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 127
  },
  "hsl": {
    "h": 307.021,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46475,
    "c": 0.16045,
    "h": 332.9
  },
  "luminance": 0.08737
}

Semantic roles & 50–950 ramp

primary
#8A2C7F
secondary
#5EB468
accent
#DB5D4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2C7F

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

Preview Lab → · Contrast checker → · Palette generator →

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