#8A2E81#8A2E81

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

Color values

HEX#8A2E81
RGBrgb(138, 46, 129)
HSLhsl(306, 50%, 36%)
HSVhsv(306, 67%, 54%)
CMYKcmyk(0%, 66.7%, 6.5%, 45.9%)
CIE-LABlab(35.88, 49.10, -27.35)
CIE-LCHlch(35.88, 56.21, 330.89°)
OKLaboklab(46.8% 0.1406 -0.075)
OKLCHoklch(46.8% 0.159 331.9)
XYZxyz(15.4207, 8.9434, 21.6787)
Luminance0.0894 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2E81 #2E8A37
analogous
#652E8A #8A2E81 #8A2E53
triadic
#8A2E81 #818A2E #2E818A
tetradic
#8A2E81 #8A652E #2E8A37 #2E538A
square
#8A2E81 #8A652E #2E8A37 #2E538A
split-complementary
#8A2E81 #538A2E #2E8A65
monochromatic
#2E0F2B #5C1F56 #8A2E81 #B83DAC #CC66C2

Accessibility & contrast

On white

7.53
#8A2E81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2E81
7.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2E81#FFFFFF#000000##FFFFFF
##8A2E811.007.532.797.53
#FFFFFF7.531.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.531.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #8a2e81;
/* rgb */ color: rgb(138, 46, 129);
/* oklch */ color: oklch(46.8% 0.159 331.9);
Tailwind
colors: {
  custom: {
    50: '#af6ea6',
    500: '#8a2e81',
    950: '#000000',
  },
}
SCSS
$custom: #8a2e81;
$custom-light: #af6ea6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2e81",
  "rgb": {
    "r": 138,
    "g": 46,
    "b": 129
  },
  "hsl": {
    "h": 305.87,
    "s": 50,
    "l": 36.078
  },
  "oklch": {
    "l": 0.46798,
    "c": 0.15932,
    "h": 331.9
  },
  "luminance": 0.08942
}

Semantic roles & 50–950 ramp

primary
#8A2E81
secondary
#61B369
accent
#DA5C4E
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2E81

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

Preview Lab → · Contrast checker → · Palette generator →

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