#7E1687#7E1687

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

Color values

HEX#7E1687
RGBrgb(126, 22, 135)
HSLhsl(295, 72%, 31%)
HSVhsv(295, 84%, 53%)
CMYKcmyk(6.7%, 83.7%, 0%, 47.1%)
CIE-LABlab(31.25, 55.67, -38.54)
CIE-LCHlch(31.25, 67.71, 325.31°)
OKLaboklab(43.2% 0.1504 -0.1076)
OKLCHoklch(43.2% 0.185 324.4)
XYZxyz(13.2639, 6.7596, 23.5231)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1687 #1F8716
analogous
#451687 #7E1687 #871657
triadic
#7E1687 #877E16 #16877E
tetradic
#7E1687 #874516 #1F8716 #165787
square
#7E1687 #874516 #1F8716 #165787
split-complementary
#7E1687 #578716 #168745
monochromatic
#1C051E #4D0D52 #7E1687 #AF1FBC #D139DF

Accessibility & contrast

On white

8.93
#7E1687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E1687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1687
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1687#FFFFFF#000000##FFFFFF
##7E16871.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00428A
Deuteranopia (green-blind)
#2F4E84
Tritanopia (blue-blind)
#812E50
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1687;
/* rgb */ color: rgb(126, 22, 135);
/* oklch */ color: oklch(43.2% 0.185 324.4);
Tailwind
colors: {
  custom: {
    50: '#a763aa',
    500: '#7e1687',
    950: '#000000',
  },
}
SCSS
$custom: #7e1687;
$custom-light: #a763aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1687",
  "rgb": {
    "r": 126,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 295.221,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.43202,
    "c": 0.18495,
    "h": 324.4
  },
  "luminance": 0.06759
}

Semantic roles & 50–950 ramp

primary
#7E1687
secondary
#48BB3E
accent
#EF3948
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7E1687

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

Preview Lab → · Contrast checker → · Palette generator →

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