#8A2D7C#8A2D7C

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

Color values

HEX#8A2D7C
RGBrgb(138, 45, 124)
HSLhsl(309, 51%, 36%)
HSVhsv(309, 67%, 54%)
CMYKcmyk(0%, 67.4%, 10.1%, 45.9%)
CIE-LABlab(35.47, 48.69, -24.87)
CIE-LCHlch(35.47, 54.67, 332.95°)
OKLaboklab(46.42% 0.1412 -0.0679)
OKLCHoklch(46.42% 0.157 334.3)
XYZxyz(15.0578, 8.7365, 19.9581)
Luminance0.0873 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D7C #2D8A3B
analogous
#692D8A #8A2D7C #8A2D4D
triadic
#8A2D7C #7C8A2D #2D7C8A
tetradic
#8A2D7C #8A692D #2D8A3B #2D4D8A
square
#8A2D7C #8A692D #2D8A3B #2D4D8A
split-complementary
#8A2D7C #4D8A2D #2D8A69
monochromatic
#2E0F29 #5C1E53 #8A2D7C #B83CA5 #CD65BD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2D7C#FFFFFF#000000##FFFFFF
##8A2D7C1.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)
#2C4B7E
Deuteranopia (green-blind)
#4B587A
Tritanopia (blue-blind)
#913450
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2d7c;
/* rgb */ color: rgb(138, 45, 124);
/* oklch */ color: oklch(46.4% 0.157 334.3);
Tailwind
colors: {
  custom: {
    50: '#af6da2',
    500: '#8a2d7c',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d7c;
$custom-light: #af6da2;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d7c",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 124
  },
  "hsl": {
    "h": 309.032,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46423,
    "c": 0.15668,
    "h": 334.3
  },
  "luminance": 0.08735
}

Semantic roles & 50–950 ramp

primary
#8A2D7C
secondary
#60B36C
accent
#DA634D
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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