#8F2897#8F2897

#8F2897 is a mid, vivid purple. Relative luminance 0.096; OKLCH L 48.2% C 0.188 H 324.8°. Best body text is #FFFFFF at 7.20:1 contrast (WCAG AA passes).

Color values

HEX#8F2897
RGBrgb(143, 40, 151)
HSLhsl(296, 58%, 37%)
HSVhsv(296, 74%, 59%)
CMYKcmyk(5.3%, 73.5%, 0%, 40.8%)
CIE-LABlab(37.10, 56.49, -38.87)
CIE-LCHlch(37.10, 68.57, 325.47°)
OKLaboklab(48.24% 0.1536 -0.1082)
OKLCHoklch(48.24% 0.188 324.8)
XYZxyz(17.6720, 9.5927, 30.1929)
Luminance0.0959 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2897 #309728
analogous
#582897 #8F2897 #972867
triadic
#8F2897 #978F28 #28978F
tetradic
#8F2897 #975828 #309728 #286797
square
#8F2897 #975828 #309728 #286797
split-complementary
#8F2897 #679728 #289758
monochromatic
#330E36 #611B67 #8F2897 #BD35C7 #CE64D6

Accessibility & contrast

On white

7.20
#8F2897 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.92
#8F2897 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2897
7.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2897#FFFFFF#000000##FFFFFF
##8F28971.007.202.927.20
#FFFFFF7.201.0021.001.00
#0000002.9221.001.0021.00
##FFFFFF7.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#034F9A
Deuteranopia (green-blind)
#3E5C94
Tritanopia (blue-blind)
#923B5D
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8f2897;
/* rgb */ color: rgb(143, 40, 151);
/* oklch */ color: oklch(48.2% 0.188 324.8);
Tailwind
colors: {
  custom: {
    50: '#b36db6',
    500: '#8f2897',
    950: '#000000',
  },
}
SCSS
$custom: #8f2897;
$custom-light: #b36db6;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2897",
  "rgb": {
    "r": 143,
    "g": 40,
    "b": 151
  },
  "hsl": {
    "h": 295.676,
    "s": 58.115,
    "l": 37.451
  },
  "oklch": {
    "l": 0.48239,
    "c": 0.18785,
    "h": 324.8
  },
  "luminance": 0.09592
}

Semantic roles & 50–950 ramp

primary
#8F2897
secondary
#66BC5F
accent
#E14652
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8F2897

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

Preview Lab → · Contrast checker → · Palette generator →

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