#7F1370#7F1370

#7F1370 is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.7% C 0.170 H 335.0°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7F1370
RGBrgb(127, 19, 112)
HSLhsl(308, 74%, 29%)
HSVhsv(308, 85%, 50%)
CMYKcmyk(0%, 85%, 11.8%, 50.2%)
CIE-LABlab(29.78, 52.86, -26.35)
CIE-LCHlch(29.78, 59.06, 333.50°)
OKLaboklab(41.75% 0.1544 -0.0722)
OKLCHoklch(41.75% 0.17 335)
XYZxyz(11.9101, 6.1487, 15.8857)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1370 #137F22
analogous
#58137F #7F1370 #7F133A
triadic
#7F1370 #707F13 #13707F
tetradic
#7F1370 #7F5813 #137F22 #133A7F
square
#7F1370 #7F5813 #137F22 #133A7F
split-complementary
#7F1370 #3A7F13 #137F58
monochromatic
#1B0417 #4A0B41 #7F1370 #B41B9F #E02DC7

Accessibility & contrast

On white

9.42
#7F1370 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.23
#7F1370 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1370
9.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1370#FFFFFF#000000##FFFFFF
##7F13701.009.422.239.42
#FFFFFF9.421.0021.001.00
#0000002.2321.001.0021.00
##FFFFFF9.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#123C72
Deuteranopia (green-blind)
#3D4C6E
Tritanopia (blue-blind)
#861E42
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1370;
/* rgb */ color: rgb(127, 19, 112);
/* oklch */ color: oklch(41.7% 0.170 335.0);
Tailwind
colors: {
  custom: {
    50: '#a86199',
    500: '#7f1370',
    950: '#000000',
  },
}
SCSS
$custom: #7f1370;
$custom-light: #a86199;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1370",
  "rgb": {
    "r": 127,
    "g": 19,
    "b": 112
  },
  "hsl": {
    "h": 308.333,
    "s": 73.973,
    "l": 28.627
  },
  "oklch": {
    "l": 0.41746,
    "c": 0.17047,
    "h": 335
  },
  "luminance": 0.06148
}

Semantic roles & 50–950 ramp

primary
#7F1370
secondary
#39B44A
accent
#F15137
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1370

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

Preview Lab → · Contrast checker → · Palette generator →

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