#8A2797#8A2797

#8A2797 is a mid, vivid purple. Relative luminance 0.091; OKLCH L 47.4% C 0.187 H 322.8°. Best body text is #FFFFFF at 7.45:1 contrast (WCAG AA passes).

Color values

HEX#8A2797
RGBrgb(138, 39, 151)
HSLhsl(293, 59%, 37%)
HSVhsv(293, 74%, 59%)
CMYKcmyk(8.6%, 74.2%, 0%, 40.8%)
CIE-LABlab(36.16, 55.75, -40.42)
CIE-LCHlch(36.16, 68.86, 324.05°)
OKLaboklab(47.4% 0.1487 -0.1129)
OKLCHoklch(47.4% 0.187 322.8)
XYZxyz(16.7921, 9.0897, 30.1422)
Luminance0.0909 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2797 #349727
analogous
#522797 #8A2797 #97276C
triadic
#8A2797 #978A27 #27978A
tetradic
#8A2797 #975227 #349727 #276C97
square
#8A2797 #975227 #349727 #276C97
split-complementary
#8A2797 #6C9727 #279752
monochromatic
#310E36 #5E1A66 #8A2797 #B634C8 #C962D6

Accessibility & contrast

On white

7.45
#8A2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.82
#8A2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2797
7.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2797#FFFFFF#000000##FFFFFF
##8A27971.007.452.827.45
#FFFFFF7.451.0021.001.00
#0000002.8221.001.0021.00
##FFFFFF7.451.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: #8a2797;
/* rgb */ color: rgb(138, 39, 151);
/* oklch */ color: oklch(47.4% 0.187 322.8);
Tailwind
colors: {
  custom: {
    50: '#b06cb6',
    500: '#8a2797',
    950: '#000000',
  },
}
SCSS
$custom: #8a2797;
$custom-light: #b06cb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2797",
  "rgb": {
    "r": 138,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 293.036,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.47404,
    "c": 0.18668,
    "h": 322.8
  },
  "luminance": 0.09089
}

Semantic roles & 50–950 ramp

primary
#8A2797
secondary
#69BC5E
accent
#E24658
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110711
muted
#807A80

Preview Lab

Preview with #8A2797

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

Preview Lab → · Contrast checker → · Palette generator →

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