#8A2D7F#8A2D7F

#8A2D7F is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.6% C 0.159 H 332.9°. Best body text is #FFFFFF at 7.60:1 contrast (WCAG AA passes).

Color values

HEX#8A2D7F
RGBrgb(138, 45, 127)
HSLhsl(307, 51%, 36%)
HSVhsv(307, 67%, 54%)
CMYKcmyk(0%, 67.4%, 8%, 45.9%)
CIE-LABlab(35.62, 49.19, -26.50)
CIE-LCHlch(35.62, 55.87, 331.69°)
OKLaboklab(46.58% 0.1416 -0.0726)
OKLCHoklch(46.58% 0.159 332.9)
XYZxyz(15.2504, 8.8135, 20.9725)
Luminance0.0881 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D7F #2D8A38
analogous
#662D8A #8A2D7F #8A2D50
triadic
#8A2D7F #7F8A2D #2D7F8A
tetradic
#8A2D7F #8A662D #2D8A38 #2D508A
square
#8A2D7F #8A662D #2D8A38 #2D508A
split-complementary
#8A2D7F #508A2D #2D8A66
monochromatic
#2E0F2A #5C1E55 #8A2D7F #B83CA9 #CD65C0

Accessibility & contrast

On white

7.60
#8A2D7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.76
#8A2D7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D7F
7.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D7F#FFFFFF#000000##FFFFFF
##8A2D7F1.007.602.767.60
#FFFFFF7.601.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B81
Deuteranopia (green-blind)
#4A597D
Tritanopia (blue-blind)
#903552
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2d7f;
/* rgb */ color: rgb(138, 45, 127);
/* oklch */ color: oklch(46.6% 0.159 332.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea4',
    500: '#8a2d7f',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d7f;
$custom-light: #af6ea4;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d7f",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 127
  },
  "hsl": {
    "h": 307.097,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46582,
    "c": 0.15908,
    "h": 332.9
  },
  "luminance": 0.08812
}

Semantic roles & 50–950 ramp

primary
#8A2D7F
secondary
#60B369
accent
#DA5E4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2D7F

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

Preview Lab → · Contrast checker → · Palette generator →

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