#7F117D#7F117D

#7F117D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.4% C 0.182 H 329.1°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7F117D
RGBrgb(127, 17, 125)
HSLhsl(301, 76%, 28%)
HSVhsv(301, 87%, 50%)
CMYKcmyk(0%, 86.6%, 1.6%, 50.2%)
CIE-LABlab(30.39, 55.37, -33.65)
CIE-LCHlch(30.39, 64.79, 328.71°)
OKLaboklab(42.42% 0.1557 -0.0933)
OKLCHoklch(42.42% 0.182 329.1)
XYZxyz(12.6544, 6.3946, 19.9659)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F117D #117F13
analogous
#4A117F #7F117D #7F1146
triadic
#7F117D #7D7F11 #117D7F
tetradic
#7F117D #7F4A11 #117F13 #11467F
square
#7F117D #7F4A11 #117F13 #11467F
split-complementary
#7F117D #467F11 #117F4A
monochromatic
#1B041B #490A48 #7F117D #B518B2 #E228DF

Accessibility & contrast

On white

9.22
#7F117D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7F117D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F117D
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F117D#FFFFFF#000000##FFFFFF
##7F117D1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003F80
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#842549
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7f117d;
/* rgb */ color: rgb(127, 17, 125);
/* oklch */ color: oklch(42.4% 0.182 329.1);
Tailwind
colors: {
  custom: {
    50: '#a861a3',
    500: '#7f117d',
    950: '#000000',
  },
}
SCSS
$custom: #7f117d;
$custom-light: #a861a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7f117d",
  "rgb": {
    "r": 127,
    "g": 17,
    "b": 125
  },
  "hsl": {
    "h": 301.091,
    "s": 76.389,
    "l": 28.235
  },
  "oklch": {
    "l": 0.4242,
    "c": 0.18151,
    "h": 329.1
  },
  "luminance": 0.06394
}

Semantic roles & 50–950 ramp

primary
#7F117D
secondary
#37B539
accent
#F33835
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7F117D

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

Preview Lab → · Contrast checker → · Palette generator →

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