#7F1372#7F1372

#7F1372 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.9% C 0.172 H 334.0°. Best body text is #FFFFFF at 9.38:1 contrast (WCAG AA passes).

Color values

HEX#7F1372
RGBrgb(127, 19, 114)
HSLhsl(307, 74%, 29%)
HSVhsv(307, 85%, 50%)
CMYKcmyk(0%, 85%, 10.2%, 50.2%)
CIE-LABlab(29.90, 53.16, -27.45)
CIE-LCHlch(29.90, 59.83, 332.69°)
OKLaboklab(41.86% 0.1545 -0.0753)
OKLCHoklch(41.86% 0.172 334)
XYZxyz(12.0227, 6.1938, 16.4787)
Luminance0.0619 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1372 #137F20
analogous
#56137F #7F1372 #7F133C
triadic
#7F1372 #727F13 #13727F
tetradic
#7F1372 #7F5613 #137F20 #133C7F
square
#7F1372 #7F5613 #137F20 #133C7F
split-complementary
#7F1372 #3C7F13 #137F56
monochromatic
#1B0418 #4A0B42 #7F1372 #B41BA2 #E02DCA

Accessibility & contrast

On white

9.38
#7F1372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7F1372 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1372
9.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1372#FFFFFF#000000##FFFFFF
##7F13721.009.382.249.38
#FFFFFF9.381.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F3D74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#852043
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1372;
/* rgb */ color: rgb(127, 19, 114);
/* oklch */ color: oklch(41.9% 0.172 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8619b',
    500: '#7f1372',
    950: '#000000',
  },
}
SCSS
$custom: #7f1372;
$custom-light: #a8619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1372",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 307.222,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41862,
    "c": 0.1719,
    "h": 334
  },
  "luminance": 0.06193
}

Semantic roles & 50–950 ramp

primary
#7F1372
secondary
#39B448
accent
#F14D37
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1372

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

Preview Lab → · Contrast checker → · Palette generator →

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