#7F1687#7F1687

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

Color values

HEX#7F1687
RGBrgb(127, 22, 135)
HSLhsl(296, 72%, 31%)
HSVhsv(296, 84%, 53%)
CMYKcmyk(5.9%, 83.7%, 0%, 47.1%)
CIE-LABlab(31.43, 55.87, -38.24)
CIE-LCHlch(31.43, 67.70, 325.61°)
OKLaboklab(43.36% 0.1516 -0.1067)
OKLCHoklch(43.36% 0.185 324.8)
XYZxyz(13.4121, 6.8360, 23.5300)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7F1687 #1E8716
analogous
#461687 #7F1687 #871656
triadic
#7F1687 #877F16 #16877F
tetradic
#7F1687 #874616 #1E8716 #165687
square
#7F1687 #874616 #1E8716 #165687
split-complementary
#7F1687 #568716 #168746
monochromatic
#1C051E #4D0D52 #7F1687 #B11FBC #D339DF

Accessibility & contrast

On white

8.87
#7F1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7F1687
8.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7F1687#FFFFFF#000000##FFFFFF
##7F16871.008.872.378.87
#FFFFFF8.871.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#304E84
Tritanopia (blue-blind)
#822D50
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7f1687;
/* rgb */ color: rgb(127, 22, 135);
/* oklch */ color: oklch(43.4% 0.185 324.8);
Tailwind
colors: {
  custom: {
    50: '#a863aa',
    500: '#7f1687',
    950: '#000000',
  },
}
SCSS
$custom: #7f1687;
$custom-light: #a863aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7f1687",
  "rgb": {
    "r": 127,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 295.752,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43361,
    "c": 0.18538,
    "h": 324.8
  },
  "luminance": 0.06835
}

Semantic roles & 50–950 ramp

primary
#7F1687
secondary
#47BB3E
accent
#EF3946
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7F1687

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

Preview Lab → · Contrast checker → · Palette generator →

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