#8A2E7D#8A2E7D

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

Color values

HEX#8A2E7D
RGBrgb(138, 46, 125)
HSLhsl(308, 50%, 36%)
HSVhsv(308, 67%, 54%)
CMYKcmyk(0%, 66.7%, 9.4%, 45.9%)
CIE-LABlab(35.67, 48.43, -25.18)
CIE-LCHlch(35.67, 54.58, 332.53°)
OKLaboklab(46.59% 0.1401 -0.0688)
OKLCHoklch(46.59% 0.156 333.9)
XYZxyz(15.1600, 8.8391, 20.3057)
Luminance0.0884 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E7D #2E8A3B
analogous
#692E8A #8A2E7D #8A2E4F
triadic
#8A2E7D #7D8A2E #2E7D8A
tetradic
#8A2E7D #8A692E #2E8A3B #2E4F8A
square
#8A2E7D #8A692E #2E8A3B #2E4F8A
split-complementary
#8A2E7D #4F8A2E #2E8A69
monochromatic
#2E0F2A #5C1F53 #8A2E7D #B83DA7 #CC66BE

Accessibility & contrast

On white

7.59
#8A2E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#8A2E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E7D
7.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E7D#FFFFFF#000000##FFFFFF
##8A2E7D1.007.592.777.59
#FFFFFF7.591.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2e7d;
/* rgb */ color: rgb(138, 46, 125);
/* oklch */ color: oklch(46.6% 0.156 333.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea3',
    500: '#8a2e7d',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e7d;
$custom-light: #af6ea3;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e7d",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 125
  },
  "hsl": {
    "h": 308.478,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46585,
    "c": 0.15608,
    "h": 333.9
  },
  "luminance": 0.08838
}

Semantic roles & 50–950 ramp

primary
#8A2E7D
secondary
#61B36C
accent
#DA624E
background
#FBF6FA
surface
#F6ECF3
border
#D0C7CD
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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