#8A2C81#8A2C81

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

Color values

HEX#8A2C81
RGBrgb(138, 44, 129)
HSLhsl(306, 52%, 36%)
HSVhsv(306, 68%, 54%)
CMYKcmyk(0%, 68.1%, 6.5%, 45.9%)
CIE-LABlab(35.58, 49.93, -27.81)
CIE-LCHlch(35.58, 57.16, 330.88°)
OKLaboklab(46.58% 0.143 -0.0763)
OKLCHoklch(46.58% 0.162 331.9)
XYZxyz(15.3444, 8.7908, 21.6532)
Luminance0.0879 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2C81 #2C8A35
analogous
#642C8A #8A2C81 #8A2C52
triadic
#8A2C81 #818A2C #2C818A
tetradic
#8A2C81 #8A642C #2C8A35 #2C528A
square
#8A2C81 #8A642C #2C8A35 #2C528A
split-complementary
#8A2C81 #528A2C #2C8A64
monochromatic
#2D0E2A #5C1D56 #8A2C81 #B83BAC #CD63C3

Accessibility & contrast

On white

7.61
#8A2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2C81
7.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2C81#FFFFFF#000000##FFFFFF
##8A2C811.007.612.767.61
#FFFFFF7.611.0021.001.00
#0000002.7621.001.0021.00
##FFFFFF7.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#274B83
Deuteranopia (green-blind)
#48587F
Tritanopia (blue-blind)
#903552
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #8a2c81;
/* rgb */ color: rgb(138, 44, 129);
/* oklch */ color: oklch(46.6% 0.162 331.9);
Tailwind
colors: {
  custom: {
    50: '#af6da6',
    500: '#8a2c81',
    950: '#000000',
  },
}
SCSS
$custom: #8a2c81;
$custom-light: #af6da6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2c81",
  "rgb": {
    "r": 138,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 305.745,
    "s": 51.648,
    "l": 35.686
  },
  "oklch": {
    "l": 0.46583,
    "c": 0.16206,
    "h": 331.9
  },
  "luminance": 0.0879
}

Semantic roles & 50–950 ramp

primary
#8A2C81
secondary
#5EB466
accent
#DB5A4D
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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