#8A2F87#8A2F87

#8A2F87 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.2% C 0.163 H 329.1°. Best body text is #FFFFFF at 7.40:1 contrast (WCAG AA passes).

Color values

HEX#8A2F87
RGBrgb(138, 47, 135)
HSLhsl(302, 49%, 36%)
HSVhsv(302, 66%, 54%)
CMYKcmyk(0%, 65.9%, 2.2%, 45.9%)
CIE-LABlab(36.34, 49.72, -30.32)
CIE-LCHlch(36.34, 58.24, 328.62°)
OKLaboklab(47.24% 0.1399 -0.0836)
OKLCHoklch(47.24% 0.163 329.1)
XYZxyz(15.8708, 9.1867, 23.8543)
Luminance0.0919 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F87 #2F8A32
analogous
#602F8A #8A2F87 #8A2F5A
triadic
#8A2F87 #878A2F #2F878A
tetradic
#8A2F87 #8A602F #2F8A32 #2F5A8A
square
#8A2F87 #8A602F #2F8A32 #2F5A8A
split-complementary
#8A2F87 #5A8A2F #2F8A60
monochromatic
#2F102E #5C1F5A #8A2F87 #B83FB4 #CC68C8

Accessibility & contrast

On white

7.40
#8A2F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.84
#8A2F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F87
7.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F87#FFFFFF#000000##FFFFFF
##8A2F871.007.402.847.40
#FFFFFF7.401.0021.001.00
#0000002.8421.001.0021.00
##FFFFFF7.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264E8A
Deuteranopia (green-blind)
#475A85
Tritanopia (blue-blind)
#8F3A57
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2f87;
/* rgb */ color: rgb(138, 47, 135);
/* oklch */ color: oklch(47.2% 0.163 329.1);
Tailwind
colors: {
  custom: {
    50: '#af6faa',
    500: '#8a2f87',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f87;
$custom-light: #af6faa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f87",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 135
  },
  "hsl": {
    "h": 301.978,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47238,
    "c": 0.16294,
    "h": 329.1
  },
  "luminance": 0.09186
}

Semantic roles & 50–950 ramp

primary
#8A2F87
secondary
#62B365
accent
#D9544F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F87

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

Preview Lab → · Contrast checker → · Palette generator →

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