#7F147C#7F147C

#7F147C is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.5% C 0.178 H 329.5°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7F147C
RGBrgb(127, 20, 124)
HSLhsl(302, 73%, 29%)
HSVhsv(302, 84%, 50%)
CMYKcmyk(0%, 84.3%, 2.4%, 50.2%)
CIE-LABlab(30.57, 54.51, -32.73)
CIE-LCHlch(30.57, 63.58, 329.01°)
OKLaboklab(42.53% 0.1537 -0.0907)
OKLCHoklch(42.53% 0.178 329.5)
XYZxyz(12.6406, 6.4686, 19.6477)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F147C #147F17
analogous
#4D147F #7F147C #7F1447
triadic
#7F147C #7C7F14 #147C7F
tetradic
#7F147C #7F4D14 #147F17 #14477F
square
#7F147C #7F4D14 #147F17 #14477F
split-complementary
#7F147C #477F14 #147F4D
monochromatic
#1A041A #4A0C48 #7F147C #B41CB0 #DE2FD9

Accessibility & contrast

On white

9.16
#7F147C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7F147C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F147C
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F147C#FFFFFF#000000##FFFFFF
##7F147C1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F7F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#842649
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f147c;
/* rgb */ color: rgb(127, 20, 124);
/* oklch */ color: oklch(42.5% 0.178 329.5);
Tailwind
colors: {
  custom: {
    50: '#a862a2',
    500: '#7f147c',
    950: '#000000',
  },
}
SCSS
$custom: #7f147c;
$custom-light: #a862a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7f147c",
  "rgb": {
    "r": 127,
    "g": 20,
    "b": 124
  },
  "hsl": {
    "h": 301.682,
    "s": 72.789,
    "l": 28.824
  },
  "oklch": {
    "l": 0.42526,
    "c": 0.17848,
    "h": 329.5
  },
  "luminance": 0.06468
}

Semantic roles & 50–950 ramp

primary
#7F147C
secondary
#3BB43E
accent
#EF3D38
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F147C

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

Preview Lab → · Contrast checker → · Palette generator →

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