#7E2787#7E2787

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

Color values

HEX#7E2787
RGBrgb(126, 39, 135)
HSLhsl(294, 55%, 34%)
HSVhsv(294, 71%, 53%)
CMYKcmyk(6.7%, 71.1%, 0%, 47.1%)
CIE-LABlab(33.21, 50.04, -35.40)
CIE-LCHlch(33.21, 61.30, 324.72°)
OKLaboklab(44.6% 0.135 -0.0986)
OKLCHoklch(44.6% 0.167 323.9)
XYZxyz(13.7025, 7.6367, 23.6693)
Luminance0.0764 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2787 #308727
analogous
#4E2787 #7E2787 #872760
triadic
#7E2787 #877E27 #27877E
tetradic
#7E2787 #874E27 #308727 #276087
square
#7E2787 #874E27 #308727 #276087
split-complementary
#7E2787 #608727 #27874E
monochromatic
#250C28 #521958 #7E2787 #AA35B6 #C459CF

Accessibility & contrast

On white

8.31
#7E2787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7E2787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2787
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2787#FFFFFF#000000##FFFFFF
##7E27871.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0B478A
Deuteranopia (green-blind)
#375285
Tritanopia (blue-blind)
#803754
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2787;
/* rgb */ color: rgb(126, 39, 135);
/* oklch */ color: oklch(44.6% 0.167 323.9);
Tailwind
colors: {
  custom: {
    50: '#a669aa',
    500: '#7e2787',
    950: '#000000',
  },
}
SCSS
$custom: #7e2787;
$custom-light: #a669aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2787",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 135
  },
  "hsl": {
    "h": 294.375,
    "s": 55.172,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44598,
    "c": 0.16715,
    "h": 323.9
  },
  "luminance": 0.07636
}

Semantic roles & 50–950 ramp

primary
#7E2787
secondary
#5FB456
accent
#DF4957
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2787

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

Preview Lab → · Contrast checker → · Palette generator →

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