#8A2F84#8A2F84

#8A2F84 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.1% C 0.160 H 330.5°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8A2F84
RGBrgb(138, 47, 132)
HSLhsl(304, 49%, 36%)
HSVhsv(304, 66%, 54%)
CMYKcmyk(0%, 65.9%, 4.3%, 45.9%)
CIE-LABlab(36.18, 49.20, -28.72)
CIE-LCHlch(36.18, 56.97, 329.72°)
OKLaboklab(47.07% 0.1396 -0.079)
OKLCHoklch(47.07% 0.16 330.5)
XYZxyz(15.6625, 9.1034, 22.7575)
Luminance0.0910 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F84 #2F8A35
analogous
#632F8A #8A2F84 #8A2F57
triadic
#8A2F84 #848A2F #2F848A
tetradic
#8A2F84 #8A632F #2F8A35 #2F578A
square
#8A2F84 #8A632F #2F8A35 #2F578A
split-complementary
#8A2F84 #578A2F #2F8A63
monochromatic
#2F102D #5C1F58 #8A2F84 #B83FB0 #CC68C5

Accessibility & contrast

On white

7.45
#8A2F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A2F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F84
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F84#FFFFFF#000000##FFFFFF
##8A2F841.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284D87
Deuteranopia (green-blind)
#485A82
Tritanopia (blue-blind)
#8F3955
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2f84;
/* rgb */ color: rgb(138, 47, 132);
/* oklch */ color: oklch(47.1% 0.160 330.5);
Tailwind
colors: {
  custom: {
    50: '#af6fa8',
    500: '#8a2f84',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f84;
$custom-light: #af6fa8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f84",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 132
  },
  "hsl": {
    "h": 303.956,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47072,
    "c": 0.16041,
    "h": 330.5
  },
  "luminance": 0.09102
}

Semantic roles & 50–950 ramp

primary
#8A2F84
secondary
#62B368
accent
#D9584F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11080F
muted
#807B7F

Preview Lab

Preview with #8A2F84

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

Preview Lab → · Contrast checker → · Palette generator →

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