#7E2687#7E2687

#7E2687 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.5% C 0.168 H 323.9°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7E2687
RGBrgb(126, 38, 135)
HSLhsl(294, 56%, 34%)
HSVhsv(294, 72%, 53%)
CMYKcmyk(6.7%, 71.9%, 0%, 47.1%)
CIE-LABlab(33.07, 50.44, -35.63)
CIE-LCHlch(33.07, 61.75, 324.77°)
OKLaboklab(44.5% 0.1361 -0.0992)
OKLCHoklch(44.5% 0.168 323.9)
XYZxyz(13.6701, 7.5719, 23.6585)
Luminance0.0757 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2687 #2F8726
analogous
#4E2687 #7E2687 #872660
triadic
#7E2687 #877E26 #26877E
tetradic
#7E2687 #874E26 #2F8726 #266087
square
#7E2687 #874E26 #2F8726 #266087
split-complementary
#7E2687 #608726 #26874E
monochromatic
#250B27 #511957 #7E2687 #AB33B7 #C558D0

Accessibility & contrast

On white

8.35
#7E2687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7E2687 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2687
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2687#FFFFFF#000000##FFFFFF
##7E26871.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#08478A
Deuteranopia (green-blind)
#375185
Tritanopia (blue-blind)
#803654
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2687;
/* rgb */ color: rgb(126, 38, 135);
/* oklch */ color: oklch(44.5% 0.168 323.9);
Tailwind
colors: {
  custom: {
    50: '#a769aa',
    500: '#7e2687',
    950: '#000000',
  },
}
SCSS
$custom: #7e2687;
$custom-light: #a769aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2687",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 135
  },
  "hsl": {
    "h": 294.433,
    "s": 56.069,
    "l": 33.922
  },
  "oklch": {
    "l": 0.44498,
    "c": 0.1684,
    "h": 323.9
  },
  "luminance": 0.07571
}

Semantic roles & 50–950 ramp

primary
#7E2687
secondary
#5DB554
accent
#DF4856
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2687

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

Preview Lab → · Contrast checker → · Palette generator →

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