#7F1573#7F1573

#7F1573 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.171 H 333.5°. Best body text is #FFFFFF at 9.30:1 contrast (WCAG AA passes).

Color values

HEX#7F1573
RGBrgb(127, 21, 115)
HSLhsl(307, 72%, 29%)
HSVhsv(307, 83%, 50%)
CMYKcmyk(0%, 83.5%, 9.4%, 50.2%)
CIE-LABlab(30.13, 52.81, -27.73)
CIE-LCHlch(30.13, 59.65, 332.30°)
OKLaboklab(42.04% 0.1531 -0.0761)
OKLCHoklch(42.04% 0.171 333.5)
XYZxyz(12.1152, 6.2872, 16.7918)
Luminance0.0629 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1573 #157F21
analogous
#56157F #7F1573 #7F153E
triadic
#7F1573 #737F15 #15737F
tetradic
#7F1573 #7F5615 #157F21 #153E7F
square
#7F1573 #7F5615 #157F21 #153E7F
split-complementary
#7F1573 #3E7F15 #157F56
monochromatic
#1A0418 #4A0C43 #7F1573 #B41EA3 #DD31CA

Accessibility & contrast

On white

9.30
#7F1573 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7F1573 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1573
9.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1573#FFFFFF#000000##FFFFFF
##7F15731.009.302.269.30
#FFFFFF9.301.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#103D75
Deuteranopia (green-blind)
#3C4C71
Tritanopia (blue-blind)
#852244
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1573;
/* rgb */ color: rgb(127, 21, 115);
/* oklch */ color: oklch(42.0% 0.171 333.5);
Tailwind
colors: {
  custom: {
    50: '#a8629b',
    500: '#7f1573',
    950: '#000000',
  },
}
SCSS
$custom: #7f1573;
$custom-light: #a8629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1573",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 115
  },
  "hsl": {
    "h": 306.792,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42044,
    "c": 0.17096,
    "h": 333.5
  },
  "luminance": 0.06286
}

Semantic roles & 50–950 ramp

primary
#7F1573
secondary
#3CB449
accent
#EE4E39
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1573

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

Preview Lab → · Contrast checker → · Palette generator →

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