#7F116F#7F116F

#7F116F is a dark, vivid purple. Relative luminance 0.061; OKLCH L 41.6% C 0.171 H 335.4°. Best body text is #FFFFFF at 9.49:1 contrast (WCAG AA passes).

Color values

HEX#7F116F
RGBrgb(127, 17, 111)
HSLhsl(309, 76%, 28%)
HSVhsv(309, 87%, 50%)
CMYKcmyk(0%, 86.6%, 12.6%, 50.2%)
CIE-LABlab(29.57, 53.18, -26.05)
CIE-LCHlch(29.57, 59.21, 333.90°)
OKLaboklab(41.57% 0.1558 -0.0713)
OKLCHoklch(41.57% 0.171 335.4)
XYZxyz(11.8223, 6.0617, 15.5832)
Luminance0.0606 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F116F #117F21
analogous
#58117F #7F116F #7F1138
triadic
#7F116F #6F7F11 #116F7F
tetradic
#7F116F #7F5811 #117F21 #11387F
square
#7F116F #7F5811 #117F21 #11387F
split-complementary
#7F116F #387F11 #117F58
monochromatic
#1B0418 #490A40 #7F116F #B5189E #E228C7

Accessibility & contrast

On white

9.49
#7F116F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.21
#7F116F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F116F
9.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F116F#FFFFFF#000000##FFFFFF
##7F116F1.009.492.219.49
#FFFFFF9.491.0021.001.00
#0000002.2121.001.0021.00
##FFFFFF9.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#113C71
Deuteranopia (green-blind)
#3D4B6D
Tritanopia (blue-blind)
#861D41
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7f116f;
/* rgb */ color: rgb(127, 17, 111);
/* oklch */ color: oklch(41.6% 0.171 335.4);
Tailwind
colors: {
  custom: {
    50: '#a86098',
    500: '#7f116f',
    950: '#000000',
  },
}
SCSS
$custom: #7f116f;
$custom-light: #a86098;
$custom-dark: #000000;
JSON
{
  "hex": "#7f116f",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 111
  },
  "hsl": {
    "h": 308.727,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41573,
    "c": 0.17134,
    "h": 335.4
  },
  "luminance": 0.06061
}

Semantic roles & 50–950 ramp

primary
#7F116F
secondary
#37B549
accent
#F35035
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7F116F

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

Preview Lab → · Contrast checker → · Palette generator →

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