#8A2E82#8A2E82

#8A2E82 is a mid, vivid purple. Relative luminance 0.090; OKLCH L 46.9% C 0.160 H 331.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#8A2E82
RGBrgb(138, 46, 130)
HSLhsl(305, 50%, 36%)
HSVhsv(305, 67%, 54%)
CMYKcmyk(0%, 66.7%, 5.8%, 45.9%)
CIE-LABlab(35.93, 49.28, -27.88)
CIE-LCHlch(35.93, 56.62, 330.49°)
OKLaboklab(46.85% 0.1407 -0.0766)
OKLCHoklch(46.85% 0.16 331.4)
XYZxyz(15.4875, 8.9701, 22.0305)
Luminance0.0897 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E82 #2E8A36
analogous
#642E8A #8A2E82 #8A2E54
triadic
#8A2E82 #828A2E #2E828A
tetradic
#8A2E82 #8A642E #2E8A36 #2E548A
square
#8A2E82 #8A642E #2E8A36 #2E548A
split-complementary
#8A2E82 #548A2E #2E8A64
monochromatic
#2E0F2C #5C1F57 #8A2E82 #B83DAD #CC66C3

Accessibility & contrast

On white

7.52
#8A2E82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#8A2E82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2E82
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E82#FFFFFF#000000##FFFFFF
##8A2E821.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#294C84
Deuteranopia (green-blind)
#495980
Tritanopia (blue-blind)
#903754
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2e82;
/* rgb */ color: rgb(138, 46, 130);
/* oklch */ color: oklch(46.9% 0.160 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6ea6',
    500: '#8a2e82',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e82;
$custom-light: #af6ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e82",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 130
  },
  "hsl": {
    "h": 305.217,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46852,
    "c": 0.16014,
    "h": 331.4
  },
  "luminance": 0.08969
}

Semantic roles & 50–950 ramp

primary
#8A2E82
secondary
#61B368
accent
#DA5A4E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2E82

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

Preview Lab → · Contrast checker → · Palette generator →

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