#8F2DA7#8F2DA7

#8F2DA7 is a mid, vivid purple. Relative luminance 0.105; OKLCH L 49.7% C 0.196 H 318.9°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#8F2DA7
RGBrgb(143, 45, 167)
HSLhsl(288, 58%, 42%)
HSVhsv(288, 73%, 65%)
CMYKcmyk(14.4%, 73.1%, 0%, 34.5%)
CIE-LABlab(38.74, 57.64, -45.90)
CIE-LCHlch(38.74, 73.68, 321.47°)
OKLaboklab(49.73% 0.1477 -0.1288)
OKLCHoklch(49.73% 0.196 318.9)
XYZxyz(19.2402, 10.5073, 37.5664)
Luminance0.1051 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2DA7 #45A72D
analogous
#522DA7 #8F2DA7 #A72D82
triadic
#8F2DA7 #A78F2D #2DA78F
tetradic
#8F2DA7 #A7522D #45A72D #2D82A7
square
#8F2DA7 #A7522D #45A72D #2D82A7
split-complementary
#8F2DA7 #82A72D #2DA752
monochromatic
#3C1347 #662077 #8F2DA7 #B244CD #C675DA

Accessibility & contrast

On white

6.77
#8F2DA7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#8F2DA7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #8F2DA7
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2DA7#FFFFFF#000000##FFFFFF
##8F2DA71.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0055AA
Deuteranopia (green-blind)
#355EA4
Tritanopia (blue-blind)
#8F4567
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #8f2da7;
/* rgb */ color: rgb(143, 45, 167);
/* oklch */ color: oklch(49.7% 0.196 318.9);
Tailwind
colors: {
  custom: {
    50: '#b370c2',
    500: '#8f2da7',
    950: '#000000',
  },
}
SCSS
$custom: #8f2da7;
$custom-light: #b370c2;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2da7",
  "rgb": {
    "r": 143,
    "g": 45,
    "b": 167
  },
  "hsl": {
    "h": 288.197,
    "s": 57.547,
    "l": 41.569
  },
  "oklch": {
    "l": 0.49725,
    "c": 0.19593,
    "h": 318.9
  },
  "luminance": 0.10506
}

Semantic roles & 50–950 ramp

primary
#8F2DA7
secondary
#7FC16E
accent
#E14765
background
#FBF7FC
surface
#F6EDF8
border
#D0C8D1
text
#110812
muted
#807B81

Preview Lab

Preview with #8F2DA7

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

Preview Lab → · Contrast checker → · Palette generator →

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