#8A2D7E#8A2D7E

#8A2D7E is a mid, vivid purple. Relative luminance 0.088; OKLCH L 46.5% C 0.158 H 333.3°. Best body text is #FFFFFF at 7.62:1 contrast (WCAG AA passes).

Color values

HEX#8A2D7E
RGBrgb(138, 45, 126)
HSLhsl(308, 51%, 36%)
HSVhsv(308, 67%, 54%)
CMYKcmyk(0%, 67.4%, 8.7%, 45.9%)
CIE-LABlab(35.57, 49.02, -25.96)
CIE-LCHlch(35.57, 55.47, 332.10°)
OKLaboklab(46.53% 0.1415 -0.071)
OKLCHoklch(46.53% 0.158 333.3)
XYZxyz(15.1856, 8.7876, 20.6310)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D7E #2D8A39
analogous
#672D8A #8A2D7E #8A2D4F
triadic
#8A2D7E #7E8A2D #2D7E8A
tetradic
#8A2D7E #8A672D #2D8A39 #2D4F8A
square
#8A2D7E #8A672D #2D8A39 #2D4F8A
split-complementary
#8A2D7E #4F8A2D #2D8A67
monochromatic
#2E0F2A #5C1E54 #8A2D7E #B83CA8 #CD65BF

Accessibility & contrast

On white

7.62
#8A2D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2D7E
7.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D7E#FFFFFF#000000##FFFFFF
##8A2D7E1.007.622.767.62
#FFFFFF7.621.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4B80
Deuteranopia (green-blind)
#4A587C
Tritanopia (blue-blind)
#903551
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2d7e;
/* rgb */ color: rgb(138, 45, 126);
/* oklch */ color: oklch(46.5% 0.158 333.3);
Tailwind
colors: {
  custom: {
    50: '#af6ea3',
    500: '#8a2d7e',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d7e;
$custom-light: #af6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d7e",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 126
  },
  "hsl": {
    "h": 307.742,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46528,
    "c": 0.15828,
    "h": 333.3
  },
  "luminance": 0.08786
}

Semantic roles & 50–950 ramp

primary
#8A2D7E
secondary
#60B36A
accent
#DA604D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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