#8A2886#8A2886

#8A2886 is a mid, vivid purple. Relative luminance 0.086; OKLCH L 46.5% C 0.171 H 329.6°. Best body text is #FFFFFF at 7.70:1 contrast (WCAG AA passes).

Color values

HEX#8A2886
RGBrgb(138, 40, 134)
HSLhsl(302, 55%, 35%)
HSVhsv(302, 71%, 54%)
CMYKcmyk(0%, 71%, 2.9%, 45.9%)
CIE-LABlab(35.29, 52.35, -31.37)
CIE-LCHlch(35.29, 61.03, 329.07°)
OKLaboklab(46.46% 0.1478 -0.0865)
OKLCHoklch(46.46% 0.171 329.6)
XYZxyz(15.5430, 8.6432, 23.3993)
Luminance0.0864 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2886 #288A2C
analogous
#5D288A #8A2886 #8A2855
triadic
#8A2886 #868A28 #28868A
tetradic
#8A2886 #8A5D28 #288A2C #28558A
square
#8A2886 #8A5D28 #288A2C #28558A
split-complementary
#8A2886 #558A28 #288A5D
monochromatic
#2B0C2A #5B1A58 #8A2886 #B936B4 #D05DCB

Accessibility & contrast

On white

7.70
#8A2886 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.73
#8A2886 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2886
7.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2886#FFFFFF#000000##FFFFFF
##8A28861.007.702.737.70
#FFFFFF7.701.0021.001.00
#0000002.7321.001.0021.00
##FFFFFF7.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4B89
Deuteranopia (green-blind)
#445884
Tritanopia (blue-blind)
#8F3554
Achromatopsia (no color)
#535353

Design tokens & code

CSS
--color: #8a2886;
/* rgb */ color: rgb(138, 40, 134);
/* oklch */ color: oklch(46.5% 0.171 329.6);
Tailwind
colors: {
  custom: {
    50: '#af6ba9',
    500: '#8a2886',
    950: '#000000',
  },
}
SCSS
$custom: #8a2886;
$custom-light: #af6ba9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2886",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 134
  },
  "hsl": {
    "h": 302.449,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.4646,
    "c": 0.17129,
    "h": 329.6
  },
  "luminance": 0.08642
}

Semantic roles & 50–950 ramp

primary
#8A2886
secondary
#59B55C
accent
#DE4F49
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2886

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

Preview Lab → · Contrast checker → · Palette generator →

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