#7F1987#7F1987

#7F1987 is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.183 H 324.8°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7F1987
RGBrgb(127, 25, 135)
HSLhsl(296, 69%, 31%)
HSVhsv(296, 81%, 53%)
CMYKcmyk(5.9%, 81.5%, 0%, 47.1%)
CIE-LABlab(31.71, 55.06, -37.80)
CIE-LCHlch(31.71, 66.78, 325.53°)
OKLaboklab(43.56% 0.1493 -0.1054)
OKLCHoklch(43.56% 0.183 324.8)
XYZxyz(13.4729, 6.9575, 23.5503)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1987 #218719
analogous
#481987 #7F1987 #871958
triadic
#7F1987 #877F19 #19877F
tetradic
#7F1987 #874819 #218719 #195887
square
#7F1987 #874819 #218719 #195887
split-complementary
#7F1987 #588719 #198748
monochromatic
#1E0620 #4E0F53 #7F1987 #B023BB #D03FDB

Accessibility & contrast

On white

8.78
#7F1987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7F1987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1987
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1987#FFFFFF#000000##FFFFFF
##7F19871.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438A
Deuteranopia (green-blind)
#314F85
Tritanopia (blue-blind)
#822F51
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7f1987;
/* rgb */ color: rgb(127, 25, 135);
/* oklch */ color: oklch(43.6% 0.183 324.8);
Tailwind
colors: {
  custom: {
    50: '#a864aa',
    500: '#7f1987',
    950: '#000000',
  },
}
SCSS
$custom: #7f1987;
$custom-light: #a864aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1987",
  "rgb": {
    "r": 127,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 295.636,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.43558,
    "c": 0.1828,
    "h": 324.8
  },
  "luminance": 0.06957
}

Semantic roles & 50–950 ramp

primary
#7F1987
secondary
#4ABA41
accent
#EC3C49
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1987

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

Preview Lab → · Contrast checker → · Palette generator →

#7F1987 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva