#8A2D81#8A2D81

#8A2D81 is a mid, vivid purple. Relative luminance 0.089; OKLCH L 46.7% C 0.161 H 331.9°. Best body text is #FFFFFF at 7.57:1 contrast (WCAG AA passes).

Color values

HEX#8A2D81
RGBrgb(138, 45, 129)
HSLhsl(306, 51%, 36%)
HSVhsv(306, 67%, 54%)
CMYKcmyk(0%, 67.4%, 6.5%, 45.9%)
CIE-LABlab(35.73, 49.52, -27.58)
CIE-LCHlch(35.73, 56.68, 330.89°)
OKLaboklab(46.69% 0.1418 -0.0757)
OKLCHoklch(46.69% 0.161 331.9)
XYZxyz(15.3821, 8.8662, 21.6658)
Luminance0.0887 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D81 #2D8A36
analogous
#642D8A #8A2D81 #8A2D52
triadic
#8A2D81 #818A2D #2D818A
tetradic
#8A2D81 #8A642D #2D8A36 #2D528A
square
#8A2D81 #8A642D #2D8A36 #2D528A
split-complementary
#8A2D81 #528A2D #2D8A64
monochromatic
#2E0F2B #5C1E56 #8A2D81 #B83CAC #CD65C3

Accessibility & contrast

On white

7.57
#8A2D81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2D81
7.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D81#FFFFFF#000000##FFFFFF
##8A2D811.007.572.777.57
#FFFFFF7.571.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284C83
Deuteranopia (green-blind)
#49597F
Tritanopia (blue-blind)
#903653
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2d81;
/* rgb */ color: rgb(138, 45, 129);
/* oklch */ color: oklch(46.7% 0.161 331.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea6',
    500: '#8a2d81',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d81;
$custom-light: #af6ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d81",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 129
  },
  "hsl": {
    "h": 305.806,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4669,
    "c": 0.1607,
    "h": 331.9
  },
  "luminance": 0.08865
}

Semantic roles & 50–950 ramp

primary
#8A2D81
secondary
#60B368
accent
#DA5B4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2D81

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

Preview Lab → · Contrast checker → · Palette generator →

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