#8A2F82#8A2F82

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

Color values

HEX#8A2F82
RGBrgb(138, 47, 130)
HSLhsl(305, 49%, 36%)
HSVhsv(305, 66%, 54%)
CMYKcmyk(0%, 65.9%, 5.8%, 45.9%)
CIE-LABlab(36.08, 48.85, -27.65)
CIE-LCHlch(36.08, 56.13, 330.49°)
OKLaboklab(46.96% 0.1394 -0.0759)
OKLCHoklch(46.96% 0.159 331.4)
XYZxyz(15.5270, 9.0492, 22.0436)
Luminance0.0905 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F82 #2F8A37
analogous
#652F8A #8A2F82 #8A2F55
triadic
#8A2F82 #828A2F #2F828A
tetradic
#8A2F82 #8A652F #2F8A37 #2F558A
square
#8A2F82 #8A652F #2F8A37 #2F558A
split-complementary
#8A2F82 #558A2F #2F8A65
monochromatic
#2F102C #5C1F57 #8A2F82 #B83FAD #CC68C3

Accessibility & contrast

On white

7.47
#8A2F82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.81
#8A2F82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F82
7.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F82#FFFFFF#000000##FFFFFF
##8A2F821.007.472.817.47
#FFFFFF7.471.0021.001.00
#0000002.8121.001.0021.00
##FFFFFF7.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4D84
Deuteranopia (green-blind)
#495980
Tritanopia (blue-blind)
#903854
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2f82;
/* rgb */ color: rgb(138, 47, 130);
/* oklch */ color: oklch(47.0% 0.159 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6fa6',
    500: '#8a2f82',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f82;
$custom-light: #af6fa6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f82",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 130
  },
  "hsl": {
    "h": 305.275,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.46963,
    "c": 0.15874,
    "h": 331.4
  },
  "luminance": 0.09048
}

Semantic roles & 50–950 ramp

primary
#8A2F82
secondary
#62B369
accent
#D95B4F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2F82

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

Preview Lab → · Contrast checker → · Palette generator →

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