#7E2887#7E2887

#7E2887 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.7% C 0.166 H 323.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E2887
RGBrgb(126, 40, 135)
HSLhsl(294, 54%, 34%)
HSVhsv(294, 70%, 53%)
CMYKcmyk(6.7%, 70.4%, 0%, 47.1%)
CIE-LABlab(33.36, 49.64, -35.18)
CIE-LCHlch(33.36, 60.84, 324.68°)
OKLaboklab(44.7% 0.1339 -0.0979)
OKLCHoklch(44.7% 0.166 323.8)
XYZxyz(13.7358, 7.7033, 23.6804)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2887 #318728
analogous
#4F2887 #7E2887 #872861
triadic
#7E2887 #877E28 #28877E
tetradic
#7E2887 #874F28 #318728 #286187
square
#7E2887 #874F28 #318728 #286187
split-complementary
#7E2887 #618728 #28874F
monochromatic
#260C29 #521A58 #7E2887 #AA36B6 #C35BCE

Accessibility & contrast

On white

8.27
#7E2887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2887
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2887#FFFFFF#000000##FFFFFF
##7E28871.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0E488A
Deuteranopia (green-blind)
#385285
Tritanopia (blue-blind)
#803854
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2887;
/* rgb */ color: rgb(126, 40, 135);
/* oklch */ color: oklch(44.7% 0.166 323.8);
Tailwind
colors: {
  custom: {
    50: '#a66aaa',
    500: '#7e2887',
    950: '#000000',
  },
}
SCSS
$custom: #7e2887;
$custom-light: #a66aaa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2887",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 135
  },
  "hsl": {
    "h": 294.316,
    "s": 54.286,
    "l": 34.314
  },
  "oklch": {
    "l": 0.447,
    "c": 0.16587,
    "h": 323.8
  },
  "luminance": 0.07702
}

Semantic roles & 50–950 ramp

primary
#7E2887
secondary
#60B457
accent
#DE4A58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2887

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

Preview Lab → · Contrast checker → · Palette generator →

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