#8A2287#8A2287

#8A2287 is a mid, vivid purple. Relative luminance 0.083; OKLCH L 46.0% C 0.179 H 329.3°. Best body text is #FFFFFF at 7.90:1 contrast (WCAG AA passes).

Color values

HEX#8A2287
RGBrgb(138, 34, 135)
HSLhsl(302, 60%, 34%)
HSVhsv(302, 75%, 54%)
CMYKcmyk(0%, 75.4%, 2.2%, 45.9%)
CIE-LABlab(34.60, 54.65, -33.08)
CIE-LCHlch(34.60, 63.89, 328.81°)
OKLaboklab(45.98% 0.1539 -0.0915)
OKLCHoklch(45.98% 0.179 329.3)
XYZxyz(15.4263, 8.2978, 23.7061)
Luminance0.0830 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2287 #228A25
analogous
#59228A #8A2287 #8A2253
triadic
#8A2287 #878A22 #22878A
tetradic
#8A2287 #8A5922 #228A25 #22538A
square
#8A2287 #8A5922 #228A25 #22538A
split-complementary
#8A2287 #538A22 #228A59
monochromatic
#280A27 #591657 #8A2287 #BB2EB7 #D452D1

Accessibility & contrast

On white

7.90
#8A2287 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.66
#8A2287 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2287
7.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2287#FFFFFF#000000##FFFFFF
##8A22871.007.902.667.90
#FFFFFF7.901.0021.001.00
#0000002.6621.001.0021.00
##FFFFFF7.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#12498A
Deuteranopia (green-blind)
#405684
Tritanopia (blue-blind)
#8F3153
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #8a2287;
/* rgb */ color: rgb(138, 34, 135);
/* oklch */ color: oklch(46.0% 0.179 329.3);
Tailwind
colors: {
  custom: {
    50: '#b069aa',
    500: '#8a2287',
    950: '#000000',
  },
}
SCSS
$custom: #8a2287;
$custom-light: #b069aa;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2287",
  "rgb": {
    "r": 138,
    "g": 34,
    "b": 135
  },
  "hsl": {
    "h": 301.731,
    "s": 60.465,
    "l": 33.725
  },
  "oklch": {
    "l": 0.45981,
    "c": 0.17906,
    "h": 329.3
  },
  "luminance": 0.08297
}

Semantic roles & 50–950 ramp

primary
#8A2287
secondary
#50B853
accent
#E44944
background
#FBF6FA
surface
#F6EBF4
border
#D0C6CE
text
#110710
muted
#807A7F

Preview Lab

Preview with #8A2287

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

Preview Lab → · Contrast checker → · Palette generator →

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