#8A2F97#8A2F97

#8A2F97 is a mid, vivid purple. Relative luminance 0.097; OKLCH L 48.2% C 0.177 H 322.4°. Best body text is #FFFFFF at 7.16:1 contrast (WCAG AA passes).

Color values

HEX#8A2F97
RGBrgb(138, 47, 151)
HSLhsl(293, 53%, 39%)
HSVhsv(293, 69%, 59%)
CMYKcmyk(8.6%, 68.9%, 0%, 40.8%)
CIE-LABlab(37.25, 52.66, -38.68)
CIE-LCHlch(37.25, 65.34, 323.70°)
OKLaboklab(48.18% 0.1403 -0.1079)
OKLCHoklch(48.18% 0.177 322.4)
XYZxyz(17.0831, 9.6716, 30.2391)
Luminance0.0967 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F97 #3C972F
analogous
#562F97 #8A2F97 #972F70
triadic
#8A2F97 #978A2F #2F978A
tetradic
#8A2F97 #97562F #3C972F #2F7097
square
#8A2F97 #97562F #3C972F #2F7097
split-complementary
#8A2F97 #70972F #2F9756
monochromatic
#35123A #5F2068 #8A2F97 #B340C3 #C66ED2

Accessibility & contrast

On white

7.16
#8A2F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.93
#8A2F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8A2F97
7.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F97#FFFFFF#000000##FFFFFF
##8A2F971.007.162.937.16
#FFFFFF7.161.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10519A
Deuteranopia (green-blind)
#3D5B94
Tritanopia (blue-blind)
#8C415F
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #8a2f97;
/* rgb */ color: rgb(138, 47, 151);
/* oklch */ color: oklch(48.2% 0.177 322.4);
Tailwind
colors: {
  custom: {
    50: '#af6fb6',
    500: '#8a2f97',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f97;
$custom-light: #af6fb6;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f97",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 151
  },
  "hsl": {
    "h": 292.5,
    "s": 52.525,
    "l": 38.824
  },
  "oklch": {
    "l": 0.48184,
    "c": 0.17697,
    "h": 322.4
  },
  "luminance": 0.09671
}

Semantic roles & 50–950 ramp

primary
#8A2F97
secondary
#73B968
accent
#DC4C5E
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F97

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

Preview Lab → · Contrast checker → · Palette generator →

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