#8A2786#8A2786

#8A2786 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.4% C 0.173 H 329.7°. Best body text is #FFFFFF at 7.73:1 contrast (WCAG AA passes).

Color values

HEX#8A2786
RGBrgb(138, 39, 134)
HSLhsl(302, 56%, 35%)
HSVhsv(302, 72%, 54%)
CMYKcmyk(0%, 71.7%, 2.9%, 45.9%)
CIE-LABlab(35.16, 52.73, -31.58)
CIE-LCHlch(35.16, 61.46, 329.08°)
OKLaboklab(46.37% 0.1489 -0.0871)
OKLCHoklch(46.37% 0.173 329.7)
XYZxyz(15.5097, 8.5767, 23.3882)
Luminance0.0858 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2786 #278A2B
analogous
#5C278A #8A2786 #8A2755
triadic
#8A2786 #868A27 #27868A
tetradic
#8A2786 #8A5C27 #278A2B #27558A
square
#8A2786 #8A5C27 #278A2B #27558A
split-complementary
#8A2786 #558A27 #278A5C
monochromatic
#2B0C29 #5A1A58 #8A2786 #BA34B4 #D15BCC

Accessibility & contrast

On white

7.73
#8A2786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.72
#8A2786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2786
7.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2786#FFFFFF#000000##FFFFFF
##8A27861.007.732.727.73
#FFFFFF7.731.0021.001.00
#0000002.7221.001.0021.00
##FFFFFF7.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4A89
Deuteranopia (green-blind)
#435783
Tritanopia (blue-blind)
#8F3454
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2786;
/* rgb */ color: rgb(138, 39, 134);
/* oklch */ color: oklch(46.4% 0.173 329.7);
Tailwind
colors: {
  custom: {
    50: '#af6ba9',
    500: '#8a2786',
    950: '#000000',
  },
}
SCSS
$custom: #8a2786;
$custom-light: #af6ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2786",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 134
  },
  "hsl": {
    "h": 302.424,
    "s": 55.932,
    "l": 34.706
  },
  "oklch": {
    "l": 0.46365,
    "c": 0.17251,
    "h": 329.7
  },
  "luminance": 0.08576
}

Semantic roles & 50–950 ramp

primary
#8A2786
secondary
#57B65B
accent
#DF4F49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2786

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

Preview Lab → · Contrast checker → · Palette generator →

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