#8A2C82#8A2C82

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

Color values

HEX#8A2C82
RGBrgb(138, 44, 130)
HSLhsl(305, 52%, 36%)
HSVhsv(305, 68%, 54%)
CMYKcmyk(0%, 68.1%, 5.8%, 45.9%)
CIE-LABlab(35.63, 50.10, -28.35)
CIE-LCHlch(35.63, 57.57, 330.50°)
OKLaboklab(46.64% 0.1431 -0.0779)
OKLCHoklch(46.64% 0.163 331.4)
XYZxyz(15.4112, 8.8175, 22.0050)
Luminance0.0882 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C82 #2C8A34
analogous
#632C8A #8A2C82 #8A2C53
triadic
#8A2C82 #828A2C #2C828A
tetradic
#8A2C82 #8A632C #2C8A34 #2C538A
square
#8A2C82 #8A632C #2C8A34 #2C538A
split-complementary
#8A2C82 #538A2C #2C8A63
monochromatic
#2D0E2B #5C1D56 #8A2C82 #B83BAE #CD63C4

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##8A2C82#FFFFFF#000000##FFFFFF
##8A2C821.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)
#264B84
Deuteranopia (green-blind)
#485880
Tritanopia (blue-blind)
#903653
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2c82;
/* rgb */ color: rgb(138, 44, 130);
/* oklch */ color: oklch(46.6% 0.163 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6da6',
    500: '#8a2c82',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c82;
$custom-light: #af6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c82",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 130
  },
  "hsl": {
    "h": 305.106,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46638,
    "c": 0.16287,
    "h": 331.4
  },
  "luminance": 0.08816
}

Semantic roles & 50–950 ramp

primary
#8A2C82
secondary
#5EB465
accent
#DB594D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2C82

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

Preview Lab → · Contrast checker → · Palette generator →

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