#8A2F86#8A2F86

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

Color values

HEX#8A2F86
RGBrgb(138, 47, 134)
HSLhsl(303, 49%, 36%)
HSVhsv(303, 66%, 54%)
CMYKcmyk(0%, 65.9%, 2.9%, 45.9%)
CIE-LABlab(36.29, 49.55, -29.79)
CIE-LCHlch(36.29, 57.81, 328.98°)
OKLaboklab(47.18% 0.1398 -0.082)
OKLCHoklch(47.18% 0.162 329.6)
XYZxyz(15.8007, 9.1587, 23.4852)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F86 #2F8A33
analogous
#612F8A #8A2F86 #8A2F59
triadic
#8A2F86 #868A2F #2F868A
tetradic
#8A2F86 #8A612F #2F8A33 #2F598A
square
#8A2F86 #8A612F #2F8A33 #2F598A
split-complementary
#8A2F86 #598A2F #2F8A61
monochromatic
#2F102D #5C1F5A #8A2F86 #B83FB2 #CC68C7

Accessibility & contrast

On white

7.42
#8A2F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A2F86 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F86
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F86#FFFFFF#000000##FFFFFF
##8A2F861.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264D89
Deuteranopia (green-blind)
#475A84
Tritanopia (blue-blind)
#8F3A56
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2f86;
/* rgb */ color: rgb(138, 47, 134);
/* oklch */ color: oklch(47.2% 0.162 329.6);
Tailwind
colors: {
  custom: {
    50: '#af6fa9',
    500: '#8a2f86',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f86;
$custom-light: #af6fa9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f86",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 134
  },
  "hsl": {
    "h": 302.637,
    "s": 49.189,
    "l": 36.275
  },
  "oklch": {
    "l": 0.47182,
    "c": 0.16209,
    "h": 329.6
  },
  "luminance": 0.09158
}

Semantic roles & 50–950 ramp

primary
#8A2F86
secondary
#62B366
accent
#D9554F
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110810
muted
#807B7F

Preview Lab

Preview with #8A2F86

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

Preview Lab → · Contrast checker → · Palette generator →

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