#7F1C71#7F1C71

#7F1C71 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.163 H 334.6°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7F1C71
RGBrgb(127, 28, 113)
HSLhsl(308, 64%, 30%)
HSVhsv(308, 78%, 50%)
CMYKcmyk(0%, 78%, 11%, 50.2%)
CIE-LABlab(30.73, 50.46, -25.51)
CIE-LCHlch(30.73, 56.54, 333.18°)
OKLaboklab(42.44% 0.1469 -0.0698)
OKLCHoklch(42.44% 0.163 334.6)
XYZxyz(12.1484, 6.5359, 16.2413)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1C71 #1C7F2A
analogous
#5B1C7F #7F1C71 #7F1C3F
triadic
#7F1C71 #717F1C #1C717F
tetradic
#7F1C71 #7F5B1C #1C7F2A #1C3F7F
square
#7F1C71 #7F5B1C #1C7F2A #1C3F7F
split-complementary
#7F1C71 #3F7F1C #1C7F5B
monochromatic
#1B0618 #4D1144 #7F1C71 #B1279E #D540C0

Accessibility & contrast

On white

9.10
#7F1C71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7F1C71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1C71
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1C71#FFFFFF#000000##FFFFFF
##7F1C711.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B3F73
Deuteranopia (green-blind)
#3F4D6F
Tritanopia (blue-blind)
#852545
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1c71;
/* rgb */ color: rgb(127, 28, 113);
/* oklch */ color: oklch(42.4% 0.163 334.6);
Tailwind
colors: {
  custom: {
    50: '#a7649a',
    500: '#7f1c71',
    950: '#000000',
  },
}
SCSS
$custom: #7f1c71;
$custom-light: #a7649a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1c71",
  "rgb": {
    "r": 127,
    "g": 28,
    "b": 113
  },
  "hsl": {
    "h": 308.485,
    "s": 63.871,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42438,
    "c": 0.16268,
    "h": 334.6
  },
  "luminance": 0.06535
}

Semantic roles & 50–950 ramp

primary
#7F1C71
secondary
#44B354
accent
#E75841
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1C71

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

Preview Lab → · Contrast checker → · Palette generator →

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