#8A2882#8A2882

#8A2882 is a mid, vivid purple. Relative luminance 0.085; OKLCH L 46.2% C 0.168 H 331.4°. Best body text is #FFFFFF at 7.76:1 contrast (WCAG AA passes).

Color values

HEX#8A2882
RGBrgb(138, 40, 130)
HSLhsl(305, 55%, 35%)
HSVhsv(305, 71%, 54%)
CMYKcmyk(0%, 71%, 5.8%, 45.9%)
CIE-LABlab(35.07, 51.68, -29.23)
CIE-LCHlch(35.07, 59.37, 330.51°)
OKLaboklab(46.23% 0.1476 -0.0804)
OKLCHoklch(46.23% 0.168 331.4)
XYZxyz(15.2693, 8.5338, 21.9577)
Luminance0.0853 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2882 #288A30
analogous
#61288A #8A2882 #8A2851
triadic
#8A2882 #828A28 #28828A
tetradic
#8A2882 #8A6128 #288A30 #28518A
square
#8A2882 #8A6128 #288A30 #28518A
split-complementary
#8A2882 #518A28 #288A61
monochromatic
#2B0C29 #5B1A55 #8A2882 #B936AF #D05DC6

Accessibility & contrast

On white

7.76
#8A2882 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.71
#8A2882 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2882
7.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2882#FFFFFF#000000##FFFFFF
##8A28821.007.762.717.76
#FFFFFF7.761.0021.001.00
#0000002.7121.001.0021.00
##FFFFFF7.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#214A85
Deuteranopia (green-blind)
#465780
Tritanopia (blue-blind)
#903352
Achromatopsia (no color)
#525252

Design tokens & code

CSS
--color: #8a2882;
/* rgb */ color: rgb(138, 40, 130);
/* oklch */ color: oklch(46.2% 0.168 331.4);
Tailwind
colors: {
  custom: {
    50: '#af6ba6',
    500: '#8a2882',
    950: '#000000',
  },
}
SCSS
$custom: #8a2882;
$custom-light: #af6ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2882",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 130
  },
  "hsl": {
    "h": 304.898,
    "s": 55.056,
    "l": 34.902
  },
  "oklch": {
    "l": 0.46233,
    "c": 0.16807,
    "h": 331.4
  },
  "luminance": 0.08533
}

Semantic roles & 50–950 ramp

primary
#8A2882
secondary
#59B560
accent
#DE5649
background
#FBF6FA
surface
#F6ECF4
border
#D0C7CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2882

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

Preview Lab → · Contrast checker → · Palette generator →

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