#7F1C87#7F1C87

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

Color values

HEX#7F1C87
RGBrgb(127, 28, 135)
HSLhsl(296, 66%, 32%)
HSVhsv(296, 79%, 53%)
CMYKcmyk(5.9%, 79.3%, 0%, 47.1%)
CIE-LABlab(32.02, 54.17, -37.30)
CIE-LCHlch(32.02, 65.77, 325.45°)
OKLaboklab(43.78% 0.1469 -0.104)
OKLCHoklch(43.78% 0.18 324.7)
XYZxyz(13.5405, 7.0927, 23.5728)
Luminance0.0709 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C87 #24871C
analogous
#4A1C87 #7F1C87 #871C5A
triadic
#7F1C87 #877F1C #1C877F
tetradic
#7F1C87 #874A1C #24871C #1C5A87
square
#7F1C87 #874A1C #24871C #1C5A87
split-complementary
#7F1C87 #5A871C #1C874A
monochromatic
#200722 #4F1154 #7F1C87 #AF27BA #CD45D8

Accessibility & contrast

On white

8.68
#7F1C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7F1C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C87
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C87#FFFFFF#000000##FFFFFF
##7F1C871.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7f1c87;
/* rgb */ color: rgb(127, 28, 135);
/* oklch */ color: oklch(43.8% 0.180 324.7);
Tailwind
colors: {
  custom: {
    50: '#a865aa',
    500: '#7f1c87',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c87;
$custom-light: #a865aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c87",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 295.514,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.43776,
    "c": 0.18,
    "h": 324.7
  },
  "luminance": 0.07092
}

Semantic roles & 50–950 ramp

primary
#7F1C87
secondary
#4EBA45
accent
#E93F4C
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1C87

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

Preview Lab → · Contrast checker → · Palette generator →

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