#8A2D7B#8A2D7B

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

Color values

HEX#8A2D7B
RGBrgb(138, 45, 123)
HSLhsl(310, 51%, 36%)
HSVhsv(310, 67%, 54%)
CMYKcmyk(0%, 67.4%, 10.9%, 45.9%)
CIE-LABlab(35.42, 48.52, -24.32)
CIE-LCHlch(35.42, 54.28, 333.38°)
OKLaboklab(46.37% 0.1411 -0.0663)
OKLCHoklch(46.37% 0.156 334.8)
XYZxyz(14.9949, 8.7113, 19.6268)
Luminance0.0871 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D7B #2D8A3C
analogous
#6A2D8A #8A2D7B #8A2D4C
triadic
#8A2D7B #7B8A2D #2D7B8A
tetradic
#8A2D7B #8A6A2D #2D8A3C #2D4C8A
square
#8A2D7B #8A6A2D #2D8A3C #2D4C8A
split-complementary
#8A2D7B #4C8A2D #2D8A6A
monochromatic
#2E0F29 #5C1E52 #8A2D7B #B83CA4 #CD65BC

Accessibility & contrast

On white

7.66
#8A2D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2D7B
7.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D7B#FFFFFF#000000##FFFFFF
##8A2D7B1.007.662.747.66
#FFFFFF7.661.0021.001.00
#0000002.7421.001.0021.00
##FFFFFF7.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4A7D
Deuteranopia (green-blind)
#4B5879
Tritanopia (blue-blind)
#913450
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2d7b;
/* rgb */ color: rgb(138, 45, 123);
/* oklch */ color: oklch(46.4% 0.156 334.8);
Tailwind
colors: {
  custom: {
    50: '#af6da1',
    500: '#8a2d7b',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d7b;
$custom-light: #af6da1;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d7b",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 123
  },
  "hsl": {
    "h": 309.677,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46371,
    "c": 0.1559,
    "h": 334.8
  },
  "luminance": 0.0871
}

Semantic roles & 50–950 ramp

primary
#8A2D7B
secondary
#60B36D
accent
#DA644D
background
#FBF6F9
surface
#F6ECF2
border
#D0C7CC
text
#11070F
muted
#807A7E

Preview Lab

Preview with #8A2D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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