#7F1F71#7F1F71

#7F1F71 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.159 H 334.6°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7F1F71
RGBrgb(127, 31, 113)
HSLhsl(309, 61%, 31%)
HSVhsv(309, 76%, 50%)
CMYKcmyk(0%, 75.6%, 11%, 50.2%)
CIE-LABlab(31.08, 49.45, -24.95)
CIE-LCHlch(31.08, 55.39, 333.23°)
OKLaboklab(42.69% 0.144 -0.0682)
OKLCHoklch(42.69% 0.159 334.6)
XYZxyz(12.2232, 6.6853, 16.2662)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F71 #1F7F2D
analogous
#5D1F7F #7F1F71 #7F1F41
triadic
#7F1F71 #717F1F #1F717F
tetradic
#7F1F71 #7F5D1F #1F7F2D #1F417F
square
#7F1F71 #7F5D1F #1F7F2D #1F417F
split-complementary
#7F1F71 #417F1F #1F7F5D
monochromatic
#1D0719 #4E1345 #7F1F71 #B02B9D #D246BE

Accessibility & contrast

On white

8.99
#7F1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7F1F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1F71
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F71#FFFFFF#000000##FFFFFF
##7F1F711.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4073
Deuteranopia (green-blind)
#414E6F
Tritanopia (blue-blind)
#852746
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1f71;
/* rgb */ color: rgb(127, 31, 113);
/* oklch */ color: oklch(42.7% 0.159 334.6);
Tailwind
colors: {
  custom: {
    50: '#a7659a',
    500: '#7f1f71',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f71;
$custom-light: #a7659a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f71",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 308.75,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42692,
    "c": 0.15931,
    "h": 334.6
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#7F1F71
secondary
#48B257
accent
#E45B44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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