#7F1173#7F1173

#7F1173 is a dark, vivid purple. Relative luminance 0.062; OKLCH L 41.8% C 0.174 H 333.5°. Best body text is #FFFFFF at 9.42:1 contrast (WCAG AA passes).

Color values

HEX#7F1173
RGBrgb(127, 17, 115)
HSLhsl(307, 76%, 28%)
HSVhsv(307, 87%, 50%)
CMYKcmyk(0%, 86.6%, 9.4%, 50.2%)
CIE-LABlab(29.79, 53.78, -28.25)
CIE-LCHlch(29.79, 60.75, 332.29°)
OKLaboklab(41.81% 0.1559 -0.0776)
OKLCHoklch(41.81% 0.174 333.5)
XYZxyz(12.0475, 6.1518, 16.7693)
Luminance0.0615 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1173 #117F1D
analogous
#54117F #7F1173 #7F113C
triadic
#7F1173 #737F11 #11737F
tetradic
#7F1173 #7F5411 #117F1D #113C7F
square
#7F1173 #7F5411 #117F1D #113C7F
split-complementary
#7F1173 #3C7F11 #117F54
monochromatic
#1B0418 #490A42 #7F1173 #B518A4 #E228CE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7F1173#FFFFFF#000000##FFFFFF
##7F11731.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)
#0A3C75
Deuteranopia (green-blind)
#3B4C71
Tritanopia (blue-blind)
#851F44
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f1173;
/* rgb */ color: rgb(127, 17, 115);
/* oklch */ color: oklch(41.8% 0.174 333.5);
Tailwind
colors: {
  custom: {
    50: '#a8609b',
    500: '#7f1173',
    950: '#000000',
  },
}
SCSS
$custom: #7f1173;
$custom-light: #a8609b;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1173",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 306.545,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41806,
    "c": 0.17418,
    "h": 333.5
  },
  "luminance": 0.06151
}

Semantic roles & 50–950 ramp

primary
#7F1173
secondary
#37B545
accent
#F34A35
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F1173

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

Preview Lab → · Contrast checker → · Palette generator →

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