#8A2F96#8A2F96

#8A2F96 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.1% C 0.176 H 322.8°. Best body text is #FFFFFF at 7.17:1 contrast (WCAG AA passes).

Color values

HEX#8A2F96
RGBrgb(138, 47, 150)
HSLhsl(293, 52%, 39%)
HSVhsv(293, 69%, 59%)
CMYKcmyk(8%, 68.7%, 0%, 41.2%)
CIE-LABlab(37.19, 52.47, -38.17)
CIE-LCHlch(37.19, 64.88, 323.97°)
OKLaboklab(48.12% 0.1403 -0.1064)
OKLCHoklch(48.12% 0.176 322.8)
XYZxyz(17.0022, 9.6393, 29.8133)
Luminance0.0964 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8A2F96 #3B962F
analogous
#562F96 #8A2F96 #962F6E
triadic
#8A2F96 #968A2F #2F968A
tetradic
#8A2F96 #96562F #3B962F #2F6E96
square
#8A2F96 #96562F #3B962F #2F6E96
split-complementary
#8A2F96 #6E962F #2F9656
monochromatic
#341239 #5F2067 #8A2F96 #B43FC3 #C66ED2

Accessibility & contrast

On white

7.17
#8A2F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #8A2F96
7.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8A2F96#FFFFFF#000000##FFFFFF
##8A2F961.007.172.937.17
#FFFFFF7.171.0021.001.00
#0000002.9321.001.0021.00
##FFFFFF7.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#125199
Deuteranopia (green-blind)
#3E5B93
Tritanopia (blue-blind)
#8C405F
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8a2f96;
/* rgb */ color: rgb(138, 47, 150);
/* oklch */ color: oklch(48.1% 0.176 322.8);
Tailwind
colors: {
  custom: {
    50: '#af6fb5',
    500: '#8a2f96',
    950: '#000000',
  },
}
SCSS
$custom: #8a2f96;
$custom-light: #af6fb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8a2f96",
  "rgb": {
    "r": 138,
    "g": 47,
    "b": 150
  },
  "hsl": {
    "h": 293.01,
    "s": 52.284,
    "l": 38.627
  },
  "oklch": {
    "l": 0.48122,
    "c": 0.17608,
    "h": 322.8
  },
  "luminance": 0.09638
}

Semantic roles & 50–950 ramp

primary
#8A2F96
secondary
#71B968
accent
#DC4C5D
background
#FBF7FB
surface
#F6EDF6
border
#D0C8D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8A2F96

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

Preview Lab → · Contrast checker → · Palette generator →

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