#8A2C7B#8A2C7B

#8A2C7B is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.3% C 0.157 H 334.8°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8A2C7B
RGBrgb(138, 44, 123)
HSLhsl(310, 52%, 36%)
HSVhsv(310, 68%, 54%)
CMYKcmyk(0%, 68.1%, 10.9%, 45.9%)
CIE-LABlab(35.27, 48.94, -24.55)
CIE-LCHlch(35.27, 54.75, 333.36°)
OKLaboklab(46.26% 0.1423 -0.067)
OKLCHoklch(46.26% 0.157 334.8)
XYZxyz(14.9572, 8.6359, 19.6142)
Luminance0.0863 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C7B #2C8A3B
analogous
#6A2C8A #8A2C7B #8A2C4C
triadic
#8A2C7B #7B8A2C #2C7B8A
tetradic
#8A2C7B #8A6A2C #2C8A3B #2C4C8A
square
#8A2C7B #8A6A2C #2C8A3B #2C4C8A
split-complementary
#8A2C7B #4C8A2C #2C8A6A
monochromatic
#2D0E28 #5C1D52 #8A2C7B #B83BA4 #CD63BC

Accessibility & contrast

On white

7.70
#8A2C7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A2C7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2C7B
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C7B#FFFFFF#000000##FFFFFF
##8A2C7B1.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B4A7D
Deuteranopia (green-blind)
#4B5879
Tritanopia (blue-blind)
#91334F
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2c7b;
/* rgb */ color: rgb(138, 44, 123);
/* oklch */ color: oklch(46.3% 0.157 334.8);
Tailwind
colors: {
  custom: {
    50: '#af6da1',
    500: '#8a2c7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c7b;
$custom-light: #af6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c7b",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 123
  },
  "hsl": {
    "h": 309.574,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46263,
    "c": 0.15728,
    "h": 334.8
  },
  "luminance": 0.08635
}

Semantic roles & 50–950 ramp

primary
#8A2C7B
secondary
#5EB46C
accent
#DB634D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A2C7B

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

Preview Lab → · Contrast checker → · Palette generator →

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