#7F1472#7F1472

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

Color values

HEX#7F1472
RGBrgb(127, 20, 114)
HSLhsl(307, 73%, 29%)
HSVhsv(307, 84%, 50%)
CMYKcmyk(0%, 84.3%, 10.2%, 50.2%)
CIE-LABlab(29.98, 52.92, -27.32)
CIE-LCHlch(29.98, 59.55, 332.70°)
OKLaboklab(41.92% 0.1538 -0.075)
OKLCHoklch(41.92% 0.171 334)
XYZxyz(12.0399, 6.2283, 16.4844)
Luminance0.0623 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1472 #147F21
analogous
#57147F #7F1472 #7F143D
triadic
#7F1472 #727F14 #14727F
tetradic
#7F1472 #7F5714 #147F21 #143D7F
square
#7F1472 #7F5714 #147F21 #143D7F
split-complementary
#7F1472 #3D7F14 #147F57
monochromatic
#1A0418 #4A0C43 #7F1472 #B41CA1 #DE2FC9

Accessibility & contrast

On white

9.35
#7F1472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7F1472 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1472
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1472#FFFFFF#000000##FFFFFF
##7F14721.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103D74
Deuteranopia (green-blind)
#3C4C70
Tritanopia (blue-blind)
#852044
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1472;
/* rgb */ color: rgb(127, 20, 114);
/* oklch */ color: oklch(41.9% 0.171 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8619b',
    500: '#7f1472',
    950: '#000000',
  },
}
SCSS
$custom: #7f1472;
$custom-light: #a8619b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1472",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 307.29,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41922,
    "c": 0.17108,
    "h": 334
  },
  "luminance": 0.06227
}

Semantic roles & 50–950 ramp

primary
#7F1472
secondary
#3BB449
accent
#EF4F38
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1472

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

Preview Lab → · Contrast checker → · Palette generator →

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