#8F2795#8F2795

#8F2795 is a mid, vivid purple. Relative luminance 0.095; OKLCH L 48.0% C 0.187 H 325.6°. Best body text is #FFFFFF at 7.26:1 contrast (WCAG AA passes).

Color values

HEX#8F2795
RGBrgb(143, 39, 149)
HSLhsl(297, 59%, 37%)
HSVhsv(297, 74%, 58%)
CMYKcmyk(4%, 73.8%, 0%, 41.6%)
CIE-LABlab(36.86, 56.49, -38.04)
CIE-LCHlch(36.86, 68.10, 326.05°)
OKLaboklab(48.03% 0.1546 -0.1058)
OKLCHoklch(48.03% 0.187 325.6)
XYZxyz(17.4776, 9.4618, 29.3337)
Luminance0.0946 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#8F2795 #2D9527
analogous
#582795 #8F2795 #952764
triadic
#8F2795 #958F27 #27958F
tetradic
#8F2795 #955827 #2D9527 #276495
square
#8F2795 #955827 #2D9527 #276495
split-complementary
#8F2795 #649527 #279558
monochromatic
#320E34 #601A64 #8F2795 #BE34C6 #CF61D6

Accessibility & contrast

On white

7.26
#8F2795 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#8F2795 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #8F2795
7.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##8F2795#FFFFFF#000000##FFFFFF
##8F27951.007.262.897.26
#FFFFFF7.261.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054F98
Deuteranopia (green-blind)
#3F5B92
Tritanopia (blue-blind)
#923A5C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #8f2795;
/* rgb */ color: rgb(143, 39, 149);
/* oklch */ color: oklch(48.0% 0.187 325.6);
Tailwind
colors: {
  custom: {
    50: '#b36cb5',
    500: '#8f2795',
    950: '#000000',
  },
}
SCSS
$custom: #8f2795;
$custom-light: #b36cb5;
$custom-dark: #000000;
JSON
{
  "hex": "#8f2795",
  "rgb": {
    "r": 143,
    "g": 39,
    "b": 149
  },
  "hsl": {
    "h": 296.727,
    "s": 58.511,
    "l": 36.863
  },
  "oklch": {
    "l": 0.48027,
    "c": 0.18732,
    "h": 325.6
  },
  "luminance": 0.09461
}

Semantic roles & 50–950 ramp

primary
#8F2795
secondary
#62BB5D
accent
#E2464F
background
#FBF6FB
surface
#F6ECF6
border
#D0C7D0
text
#110811
muted
#807B80

Preview Lab

Preview with #8F2795

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

Preview Lab → · Contrast checker → · Palette generator →

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