#7F1786#7F1786

#7F1786 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.4% C 0.184 H 325.2°. Best body text is #FFFFFF at 8.86:1 contrast (WCAG AA passes).

Color values

HEX#7F1786
RGBrgb(127, 23, 134)
HSLhsl(296, 71%, 31%)
HSVhsv(296, 83%, 53%)
CMYKcmyk(5.2%, 82.8%, 0%, 47.5%)
CIE-LABlab(31.46, 55.43, -37.58)
CIE-LCHlch(31.46, 66.97, 325.86°)
OKLaboklab(43.36% 0.1509 -0.1048)
OKLCHoklch(43.36% 0.184 325.2)
XYZxyz(13.3616, 6.8470, 23.1675)
Luminance0.0685 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1786 #1E8617
analogous
#471786 #7F1786 #861755
triadic
#7F1786 #867F17 #17867F
tetradic
#7F1786 #864717 #1E8617 #175586
square
#7F1786 #864717 #1E8617 #175586
split-complementary
#7F1786 #558617 #178647
monochromatic
#1C051E #4D0E52 #7F1786 #B120BA #D33ADD

Accessibility & contrast

On white

8.86
#7F1786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7F1786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7F1786
8.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1786#FFFFFF#000000##FFFFFF
##7F17861.008.862.378.86
#FFFFFF8.861.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004289
Deuteranopia (green-blind)
#314E83
Tritanopia (blue-blind)
#822D50
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1786;
/* rgb */ color: rgb(127, 23, 134);
/* oklch */ color: oklch(43.4% 0.184 325.2);
Tailwind
colors: {
  custom: {
    50: '#a863aa',
    500: '#7f1786',
    950: '#000000',
  },
}
SCSS
$custom: #7f1786;
$custom-light: #a863aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1786",
  "rgb": {
    "r": 127,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 296.216,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43358,
    "c": 0.18376,
    "h": 325.2
  },
  "luminance": 0.06846
}

Semantic roles & 50–950 ramp

primary
#7F1786
secondary
#47BA3F
accent
#ED3A46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1786

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

Preview Lab → · Contrast checker → · Palette generator →

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