#7F1572#7F1572

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

Color values

HEX#7F1572
RGBrgb(127, 21, 114)
HSLhsl(307, 72%, 29%)
HSVhsv(307, 83%, 50%)
CMYKcmyk(0%, 83.5%, 10.2%, 50.2%)
CIE-LABlab(30.07, 52.66, -27.18)
CIE-LCHlch(30.07, 59.26, 332.70°)
OKLaboklab(41.99% 0.153 -0.0746)
OKLCHoklch(41.99% 0.17 334)
XYZxyz(12.0580, 6.2644, 16.4904)
Luminance0.0626 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1572 #157F22
analogous
#57157F #7F1572 #7F153D
triadic
#7F1572 #727F15 #15727F
tetradic
#7F1572 #7F5715 #157F22 #153D7F
square
#7F1572 #7F5715 #157F22 #153D7F
split-complementary
#7F1572 #3D7F15 #157F57
monochromatic
#1A0418 #4A0C43 #7F1572 #B41EA1 #DD31C8

Accessibility & contrast

On white

9.32
#7F1572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1572
9.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1572#FFFFFF#000000##FFFFFF
##7F15721.009.322.259.32
#FFFFFF9.321.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113D74
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#852144
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1572;
/* rgb */ color: rgb(127, 21, 114);
/* oklch */ color: oklch(42.0% 0.170 334.0);
Tailwind
colors: {
  custom: {
    50: '#a8629b',
    500: '#7f1572',
    950: '#000000',
  },
}
SCSS
$custom: #7f1572;
$custom-light: #a8629b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1572",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 307.358,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.41986,
    "c": 0.17023,
    "h": 334
  },
  "luminance": 0.06263
}

Semantic roles & 50–950 ramp

primary
#7F1572
secondary
#3CB44B
accent
#EE5039
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1572

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

Preview Lab → · Contrast checker → · Palette generator →

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