#8A2F81#8A2F81

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

Color values

HEX#8A2F81
RGBrgb(138, 47, 129)
HSLhsl(306, 49%, 36%)
HSVhsv(306, 66%, 54%)
CMYKcmyk(0%, 65.9%, 6.5%, 45.9%)
CIE-LABlab(36.03, 48.68, -27.11)
CIE-LCHlch(36.03, 55.72, 330.89°)
OKLaboklab(46.91% 0.1393 -0.0743)
OKLCHoklch(46.91% 0.158 331.9)
XYZxyz(15.4602, 9.0225, 21.6919)
Luminance0.0902 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F81 #2F8A38
analogous
#662F8A #8A2F81 #8A2F54
triadic
#8A2F81 #818A2F #2F818A
tetradic
#8A2F81 #8A662F #2F8A38 #2F548A
square
#8A2F81 #8A662F #2F8A38 #2F548A
split-complementary
#8A2F81 #548A2F #2F8A66
monochromatic
#2F102C #5C1F56 #8A2F81 #B83FAC #CC68C2

Accessibility & contrast

On white

7.49
#8A2F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#8A2F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F81
7.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F81#FFFFFF#000000##FFFFFF
##8A2F811.007.492.807.49
#FFFFFF7.491.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4C83
Deuteranopia (green-blind)
#4A597F
Tritanopia (blue-blind)
#903853
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2f81;
/* rgb */ color: rgb(138, 47, 129);
/* oklch */ color: oklch(46.9% 0.158 331.9);
Tailwind
colors: {
  custom: {
    50: '#af6fa6',
    500: '#8a2f81',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f81;
$custom-light: #af6fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f81",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 129
  },
  "hsl": {
    "h": 305.934,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46909,
    "c": 0.15791,
    "h": 331.9
  },
  "luminance": 0.09021
}

Semantic roles & 50–950 ramp

primary
#8A2F81
secondary
#62B36A
accent
#D95D4F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2F81

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

Preview Lab → · Contrast checker → · Palette generator →

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