#7F1579#7F1579

#7F1579 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.175 H 330.8°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7F1579
RGBrgb(127, 21, 121)
HSLhsl(303, 72%, 29%)
HSVhsv(303, 83%, 50%)
CMYKcmyk(0%, 83.5%, 4.7%, 50.2%)
CIE-LABlab(30.47, 53.77, -30.99)
CIE-LCHlch(30.47, 62.06, 330.04°)
OKLaboklab(42.4% 0.1531 -0.0856)
OKLCHoklch(42.4% 0.175 330.8)
XYZxyz(12.4717, 6.4299, 18.6697)
Luminance0.0643 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1579 #157F1B
analogous
#50157F #7F1579 #7F1544
triadic
#7F1579 #797F15 #15797F
tetradic
#7F1579 #7F5015 #157F1B #15447F
square
#7F1579 #7F5015 #157F1B #15447F
split-complementary
#7F1579 #447F15 #157F50
monochromatic
#1A0419 #4A0C47 #7F1579 #B41EAB #DD31D3

Accessibility & contrast

On white

9.19
#7F1579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1579
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1579#FFFFFF#000000##FFFFFF
##7F15791.009.192.299.19
#FFFFFF9.191.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#033F7C
Deuteranopia (green-blind)
#394D77
Tritanopia (blue-blind)
#842548
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f1579;
/* rgb */ color: rgb(127, 21, 121);
/* oklch */ color: oklch(42.4% 0.175 330.8);
Tailwind
colors: {
  custom: {
    50: '#a862a0',
    500: '#7f1579',
    950: '#000000',
  },
}
SCSS
$custom: #7f1579;
$custom-light: #a862a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1579",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 303.396,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42402,
    "c": 0.1754,
    "h": 330.8
  },
  "luminance": 0.06429
}

Semantic roles & 50–950 ramp

primary
#7F1579
secondary
#3CB443
accent
#EE4439
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7F1579

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

Preview Lab → · Contrast checker → · Palette generator →

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