#8A2D82#8A2D82

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

Color values

HEX#8A2D82
RGBrgb(138, 45, 130)
HSLhsl(305, 51%, 36%)
HSVhsv(305, 67%, 54%)
CMYKcmyk(0%, 67.4%, 5.8%, 45.9%)
CIE-LABlab(35.78, 49.69, -28.12)
CIE-LCHlch(35.78, 57.10, 330.50°)
OKLaboklab(46.74% 0.1419 -0.0772)
OKLCHoklch(46.74% 0.162 331.4)
XYZxyz(15.4489, 8.8929, 22.0176)
Luminance0.0889 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2D82 #2D8A35
analogous
#632D8A #8A2D82 #8A2D53
triadic
#8A2D82 #828A2D #2D828A
tetradic
#8A2D82 #8A632D #2D8A35 #2D538A
square
#8A2D82 #8A632D #2D8A35 #2D538A
split-complementary
#8A2D82 #538A2D #2D8A63
monochromatic
#2E0F2B #5C1E57 #8A2D82 #B83CAD #CD65C4

Accessibility & contrast

On white

7.56
#8A2D82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#8A2D82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2D82
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2D82#FFFFFF#000000##FFFFFF
##8A2D821.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274C84
Deuteranopia (green-blind)
#485980
Tritanopia (blue-blind)
#903653
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2d82;
/* rgb */ color: rgb(138, 45, 130);
/* oklch */ color: oklch(46.7% 0.162 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6ea6',
    500: '#8a2d82',
    950: '#000000',
  },
}
SCSS
$custom: #8a2d82;
$custom-light: #af6ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2d82",
  "rgb": {
    "r": 138,
    "g": 45,
    "b": 130
  },
  "hsl": {
    "h": 305.161,
    "s": 50.82,
    "l": 35.882
  },
  "oklch": {
    "l": 0.46744,
    "c": 0.16152,
    "h": 331.4
  },
  "luminance": 0.08892
}

Semantic roles & 50–950 ramp

primary
#8A2D82
secondary
#60B367
accent
#DA5A4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2D82

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

Preview Lab → · Contrast checker → · Palette generator →

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