#7F1574#7F1574

#7F1574 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.1% C 0.172 H 333.1°. Best body text is #FFFFFF at 9.28:1 contrast (WCAG AA passes).

Color values

HEX#7F1574
RGBrgb(127, 21, 116)
HSLhsl(306, 72%, 29%)
HSVhsv(306, 83%, 50%)
CMYKcmyk(0%, 83.5%, 8.7%, 50.2%)
CIE-LABlab(30.18, 52.97, -28.27)
CIE-LCHlch(30.18, 60.04, 331.91°)
OKLaboklab(42.1% 0.1531 -0.0777)
OKLCHoklch(42.1% 0.172 333.1)
XYZxyz(12.1730, 6.3104, 17.0965)
Luminance0.0631 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1574 #157F20
analogous
#55157F #7F1574 #7F153F
triadic
#7F1574 #747F15 #15747F
tetradic
#7F1574 #7F5515 #157F20 #153F7F
square
#7F1574 #7F5515 #157F20 #153F7F
split-complementary
#7F1574 #3F7F15 #157F55
monochromatic
#1A0418 #4A0C44 #7F1574 #B41EA4 #DD31CB

Accessibility & contrast

On white

9.28
#7F1574 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1574
9.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1574#FFFFFF#000000##FFFFFF
##7F15741.009.282.269.28
#FFFFFF9.281.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E3E76
Deuteranopia (green-blind)
#3C4C72
Tritanopia (blue-blind)
#852245
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7f1574;
/* rgb */ color: rgb(127, 21, 116);
/* oklch */ color: oklch(42.1% 0.172 333.1);
Tailwind
colors: {
  custom: {
    50: '#a8629c',
    500: '#7f1574',
    950: '#000000',
  },
}
SCSS
$custom: #7f1574;
$custom-light: #a8629c;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1574",
  "rgb": {
    "r": 127,
    "g": 21,
    "b": 116
  },
  "hsl": {
    "h": 306.226,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.42102,
    "c": 0.17168,
    "h": 333.1
  },
  "luminance": 0.06309
}

Semantic roles & 50–950 ramp

primary
#7F1574
secondary
#3CB448
accent
#EE4C39
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1574

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

Preview Lab → · Contrast checker → · Palette generator →

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