#8A2282#8A2282

#8A2282 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.7% C 0.175 H 331.4°. Best body text is #FFFFFF at 7.98:1 contrast (WCAG AA passes).

Color values

HEX#8A2282
RGBrgb(138, 34, 130)
HSLhsl(305, 60%, 34%)
HSVhsv(305, 75%, 54%)
CMYKcmyk(0%, 75.4%, 5.8%, 45.9%)
CIE-LABlab(34.31, 53.82, -30.42)
CIE-LCHlch(34.31, 61.83, 330.52°)
OKLaboklab(45.69% 0.1538 -0.0838)
OKLCHoklch(45.69% 0.175 331.4)
XYZxyz(15.0825, 8.1603, 21.8955)
Luminance0.0816 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2282 #228A2A
analogous
#5E228A #8A2282 #8A224E
triadic
#8A2282 #828A22 #22828A
tetradic
#8A2282 #8A5E22 #228A2A #224E8A
square
#8A2282 #8A5E22 #228A2A #224E8A
split-complementary
#8A2282 #4E8A22 #228A5E
monochromatic
#280A25 #591654 #8A2282 #BB2EB0 #D452CA

Accessibility & contrast

On white

7.98
#8A2282 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#8A2282 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2282
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2282#FFFFFF#000000##FFFFFF
##8A22821.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194785
Deuteranopia (green-blind)
#43567F
Tritanopia (blue-blind)
#902F50
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2282;
/* rgb */ color: rgb(138, 34, 130);
/* oklch */ color: oklch(45.7% 0.175 331.4);
Tailwind
colors: {
  custom: {
    50: '#b069a6',
    500: '#8a2282',
    950: '#000000',
  },
}
SCSS
$custom: #8a2282;
$custom-light: #b069a6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2282",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 130
  },
  "hsl": {
    "h": 304.615,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45689,
    "c": 0.17515,
    "h": 331.4
  },
  "luminance": 0.08159
}

Semantic roles & 50–950 ramp

primary
#8A2282
secondary
#50B858
accent
#E45044
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2282

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

Preview Lab → · Contrast checker → · Palette generator →

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