#7F1D71#7F1D71

#7F1D71 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.162 H 334.6°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7F1D71
RGBrgb(127, 29, 113)
HSLhsl(309, 63%, 31%)
HSVhsv(309, 77%, 50%)
CMYKcmyk(0%, 77.2%, 11%, 50.2%)
CIE-LABlab(30.84, 50.13, -25.33)
CIE-LCHlch(30.84, 56.16, 333.20°)
OKLaboklab(42.52% 0.146 -0.0693)
OKLCHoklch(42.52% 0.162 334.6)
XYZxyz(12.1725, 6.5841, 16.2494)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1D71 #1D7F2B
analogous
#5C1D7F #7F1D71 #7F1D40
triadic
#7F1D71 #717F1D #1D717F
tetradic
#7F1D71 #7F5C1D #1D7F2B #1D407F
square
#7F1D71 #7F5C1D #1D7F2B #1D407F
split-complementary
#7F1D71 #407F1D #1D7F5C
monochromatic
#1B0618 #4D1245 #7F1D71 #B1289D #D442BF

Accessibility & contrast

On white

9.07
#7F1D71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7F1D71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1D71
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1D71#FFFFFF#000000##FFFFFF
##7F1D711.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C3F73
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#852645
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1d71;
/* rgb */ color: rgb(127, 29, 113);
/* oklch */ color: oklch(42.5% 0.162 334.6);
Tailwind
colors: {
  custom: {
    50: '#a7649a',
    500: '#7f1d71',
    950: '#000000',
  },
}
SCSS
$custom: #7f1d71;
$custom-light: #a7649a;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1d71",
  "rgb": {
    "r": 127,
    "g": 29,
    "b": 113
  },
  "hsl": {
    "h": 308.571,
    "s": 62.821,
    "l": 30.588
  },
  "oklch": {
    "l": 0.4252,
    "c": 0.16159,
    "h": 334.6
  },
  "luminance": 0.06583
}

Semantic roles & 50–950 ramp

primary
#7F1D71
secondary
#45B255
accent
#E65942
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1D71

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

Preview Lab → · Contrast checker → · Palette generator →

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