#8A2897#8A2897

#8A2897 is a mid, vivid purple. Relative luminance 0.092; OKLCH L 47.5% C 0.186 H 322.8°. Best body text is #FFFFFF at 7.42:1 contrast (WCAG AA passes).

Color values

HEX#8A2897
RGBrgb(138, 40, 151)
HSLhsl(293, 58%, 37%)
HSVhsv(293, 74%, 59%)
CMYKcmyk(8.6%, 73.5%, 0%, 40.8%)
CIE-LABlab(36.28, 55.39, -40.22)
CIE-LCHlch(36.28, 68.45, 324.01°)
OKLaboklab(47.49% 0.1477 -0.1123)
OKLCHoklch(47.49% 0.186 322.8)
XYZxyz(16.8254, 9.1562, 30.1532)
Luminance0.0916 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2897 #359728
analogous
#532897 #8A2897 #97286C
triadic
#8A2897 #978A28 #28978A
tetradic
#8A2897 #975328 #359728 #286C97
square
#8A2897 #975328 #359728 #286C97
split-complementary
#8A2897 #6C9728 #289753
monochromatic
#320E36 #5E1B67 #8A2897 #B635C7 #C864D6

Accessibility & contrast

On white

7.42
#8A2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.83
#8A2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2897
7.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2897#FFFFFF#000000##FFFFFF
##8A28971.007.422.837.42
#FFFFFF7.421.0021.001.00
#0000002.8321.001.0021.00
##FFFFFF7.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004E9A
Deuteranopia (green-blind)
#395994
Tritanopia (blue-blind)
#8C3C5D
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #8a2897;
/* rgb */ color: rgb(138, 40, 151);
/* oklch */ color: oklch(47.5% 0.186 322.8);
Tailwind
colors: {
  custom: {
    50: '#b06cb6',
    500: '#8a2897',
    950: '#000000',
  },
}
SCSS
$custom: #8a2897;
$custom-light: #b06cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2897",
  "rgb": {
    "r": 138,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 292.973,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.47494,
    "c": 0.18555,
    "h": 322.8
  },
  "luminance": 0.09155
}

Semantic roles & 50–950 ramp

primary
#8A2897
secondary
#6ABC5F
accent
#E14659
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2897

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

Preview Lab → · Contrast checker → · Palette generator →

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