#8A2286#8A2286

#8A2286 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 45.9% C 0.178 H 329.7°. Best body text is #FFFFFF at 7.91:1 contrast (WCAG AA passes).

Color values

HEX#8A2286
RGBrgb(138, 34, 134)
HSLhsl(302, 60%, 34%)
HSVhsv(302, 75%, 54%)
CMYKcmyk(0%, 75.4%, 2.9%, 45.9%)
CIE-LABlab(34.54, 54.49, -32.56)
CIE-LCHlch(34.54, 63.47, 329.14°)
OKLaboklab(45.92% 0.1539 -0.0899)
OKLCHoklch(45.92% 0.178 329.7)
XYZxyz(15.3562, 8.2697, 23.3371)
Luminance0.0827 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2286 #228A26
analogous
#5A228A #8A2286 #8A2252
triadic
#8A2286 #868A22 #22868A
tetradic
#8A2286 #8A5A22 #228A26 #22528A
square
#8A2286 #8A5A22 #228A26 #22528A
split-complementary
#8A2286 #528A22 #228A5A
monochromatic
#280A27 #591656 #8A2286 #BB2EB6 #D452CF

Accessibility & contrast

On white

7.91
#8A2286 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.65
#8A2286 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2286
7.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2286#FFFFFF#000000##FFFFFF
##8A22861.007.912.657.91
#FFFFFF7.911.0021.001.00
#0000002.6521.001.0021.00
##FFFFFF7.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#134889
Deuteranopia (green-blind)
#415683
Tritanopia (blue-blind)
#8F3152
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2286;
/* rgb */ color: rgb(138, 34, 134);
/* oklch */ color: oklch(45.9% 0.178 329.7);
Tailwind
colors: {
  custom: {
    50: '#b069a9',
    500: '#8a2286',
    950: '#000000',
  },
}
SCSS
$custom: #8a2286;
$custom-light: #b069a9;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2286",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 134
  },
  "hsl": {
    "h": 302.308,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45922,
    "c": 0.17827,
    "h": 329.7
  },
  "luminance": 0.08269
}

Semantic roles & 50–950 ramp

primary
#8A2286
secondary
#50B854
accent
#E44A44
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2286

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

Preview Lab → · Contrast checker → · Palette generator →

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