#8A2284#8A2284

#8A2284 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.177 H 330.6°. Best body text is #FFFFFF at 7.95:1 contrast (WCAG AA passes).

Color values

HEX#8A2284
RGBrgb(138, 34, 132)
HSLhsl(303, 60%, 34%)
HSVhsv(303, 75%, 54%)
CMYKcmyk(0%, 75.4%, 4.3%, 45.9%)
CIE-LABlab(34.43, 54.15, -31.49)
CIE-LCHlch(34.43, 62.64, 329.82°)
OKLaboklab(45.81% 0.1539 -0.0869)
OKLCHoklch(45.81% 0.177 330.6)
XYZxyz(15.2181, 8.2145, 22.6094)
Luminance0.0821 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2284 #228A28
analogous
#5C228A #8A2284 #8A2250
triadic
#8A2284 #848A22 #22848A
tetradic
#8A2284 #8A5C22 #228A28 #22508A
square
#8A2284 #8A5C22 #228A28 #22508A
split-complementary
#8A2284 #508A22 #228A5C
monochromatic
#280A26 #591655 #8A2284 #BB2EB3 #D452CD

Accessibility & contrast

On white

7.95
#8A2284 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#8A2284 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2284
7.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2284#FFFFFF#000000##FFFFFF
##8A22841.007.952.647.95
#FFFFFF7.951.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#164887
Deuteranopia (green-blind)
#425681
Tritanopia (blue-blind)
#8F3051
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2284;
/* rgb */ color: rgb(138, 34, 132);
/* oklch */ color: oklch(45.8% 0.177 330.6);
Tailwind
colors: {
  custom: {
    50: '#b069a8',
    500: '#8a2284',
    950: '#000000',
  },
}
SCSS
$custom: #8a2284;
$custom-light: #b069a8;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2284",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 132
  },
  "hsl": {
    "h": 303.462,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45805,
    "c": 0.17671,
    "h": 330.6
  },
  "luminance": 0.08213
}

Semantic roles & 50–950 ramp

primary
#8A2284
secondary
#50B856
accent
#E44D44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#11070F
muted
#807A7F

Preview Lab

Preview with #8A2284

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

Preview Lab → · Contrast checker → · Palette generator →

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