#7F1D87#7F1D87

#7F1D87 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.179 H 324.7°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7F1D87
RGBrgb(127, 29, 135)
HSLhsl(295, 65%, 32%)
HSVhsv(295, 79%, 53%)
CMYKcmyk(5.9%, 78.5%, 0%, 47.1%)
CIE-LABlab(32.13, 53.85, -37.13)
CIE-LCHlch(32.13, 65.41, 325.42°)
OKLaboklab(43.85% 0.146 -0.1035)
OKLCHoklch(43.85% 0.179 324.7)
XYZxyz(13.5646, 7.1409, 23.5808)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D87 #25871D
analogous
#4A1D87 #7F1D87 #871D5A
triadic
#7F1D87 #877F1D #1D877F
tetradic
#7F1D87 #874A1D #25871D #1D5A87
square
#7F1D87 #874A1D #25871D #1D5A87
split-complementary
#7F1D87 #5A871D #1D874A
monochromatic
#200722 #501255 #7F1D87 #AE28B9 #CD47D7

Accessibility & contrast

On white

8.65
#7F1D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7F1D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D87
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D87#FFFFFF#000000##FFFFFF
##7F1D871.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448A
Deuteranopia (green-blind)
#334F85
Tritanopia (blue-blind)
#823151
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7f1d87;
/* rgb */ color: rgb(127, 29, 135);
/* oklch */ color: oklch(43.9% 0.179 324.7);
Tailwind
colors: {
  custom: {
    50: '#a865aa',
    500: '#7f1d87',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d87;
$custom-light: #a865aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d87",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 295.472,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.43853,
    "c": 0.179,
    "h": 324.7
  },
  "luminance": 0.0714
}

Semantic roles & 50–950 ramp

primary
#7F1D87
secondary
#4FB946
accent
#E8404D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1D87

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

Preview Lab → · Contrast checker → · Palette generator →

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