#8A2C7D#8A2C7D

#8A2C7D is a mid, vivid purple. Relative luminance 0.087; OKLCH L 46.4% C 0.159 H 333.8°. Best body text is #FFFFFF at 7.67:1 contrast (WCAG AA passes).

Color values

HEX#8A2C7D
RGBrgb(138, 44, 125)
HSLhsl(308, 52%, 36%)
HSVhsv(308, 68%, 54%)
CMYKcmyk(0%, 68.1%, 9.4%, 45.9%)
CIE-LABlab(35.37, 49.27, -25.64)
CIE-LCHlch(35.37, 55.54, 332.50°)
OKLaboklab(46.37% 0.1426 -0.0701)
OKLCHoklch(46.37% 0.159 333.8)
XYZxyz(15.0837, 8.6865, 20.2803)
Luminance0.0868 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C7D #2C8A39
analogous
#682C8A #8A2C7D #8A2C4E
triadic
#8A2C7D #7D8A2C #2C7D8A
tetradic
#8A2C7D #8A682C #2C8A39 #2C4E8A
square
#8A2C7D #8A682C #2C8A39 #2C4E8A
split-complementary
#8A2C7D #4E8A2C #2C8A68
monochromatic
#2D0E29 #5C1D53 #8A2C7D #B83BA7 #CD63BF

Accessibility & contrast

On white

7.67
#8A2C7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.74
#8A2C7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C7D
7.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C7D#FFFFFF#000000##FFFFFF
##8A2C7D1.007.672.747.67
#FFFFFF7.671.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4A7F
Deuteranopia (green-blind)
#4A587B
Tritanopia (blue-blind)
#903450
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2c7d;
/* rgb */ color: rgb(138, 44, 125);
/* oklch */ color: oklch(46.4% 0.159 333.8);
Tailwind
colors: {
  custom: {
    50: '#af6da3',
    500: '#8a2c7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c7d;
$custom-light: #af6da3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c7d",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 125
  },
  "hsl": {
    "h": 308.298,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46368,
    "c": 0.15885,
    "h": 333.8
  },
  "luminance": 0.08685
}

Semantic roles & 50–950 ramp

primary
#8A2C7D
secondary
#5EB46A
accent
#DB604D
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2C7D

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

Preview Lab → · Contrast checker → · Palette generator →

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