#7F1F72#7F1F72

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

Color values

HEX#7F1F72
RGBrgb(127, 31, 114)
HSLhsl(308, 61%, 31%)
HSVhsv(308, 76%, 50%)
CMYKcmyk(0%, 75.6%, 10.2%, 50.2%)
CIE-LABlab(31.13, 49.61, -25.50)
CIE-LCHlch(31.13, 55.78, 332.79°)
OKLaboklab(42.75% 0.1441 -0.0698)
OKLCHoklch(42.75% 0.16 334.1)
XYZxyz(12.2798, 6.7080, 16.5644)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1F72 #1F7F2C
analogous
#5C1F7F #7F1F72 #7F1F42
triadic
#7F1F72 #727F1F #1F727F
tetradic
#7F1F72 #7F5C1F #1F7F2C #1F427F
square
#7F1F72 #7F5C1F #1F7F2C #1F427F
split-complementary
#7F1F72 #427F1F #1F7F5C
monochromatic
#1D071A #4E1346 #7F1F72 #B02B9E #D246BF

Accessibility & contrast

On white

8.97
#7F1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1F72
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1F72#FFFFFF#000000##FFFFFF
##7F1F721.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4074
Deuteranopia (green-blind)
#404E70
Tritanopia (blue-blind)
#852846
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7f1f72;
/* rgb */ color: rgb(127, 31, 114);
/* oklch */ color: oklch(42.7% 0.160 334.1);
Tailwind
colors: {
  custom: {
    50: '#a7659b',
    500: '#7f1f72',
    950: '#000000',
  },
}
SCSS
$custom: #7f1f72;
$custom-light: #a7659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1f72",
  "rgb": {
    "r": 127,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 308.125,
    "s": 60.759,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42748,
    "c": 0.16008,
    "h": 334.1
  },
  "luminance": 0.06707
}

Semantic roles & 50–950 ramp

primary
#7F1F72
secondary
#48B256
accent
#E45A44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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