#7E2387#7E2387

#7E2387 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.2% C 0.172 H 324.0°. Best body text is #FFFFFF at 8.48:1 contrast (WCAG AA passes).

Color values

HEX#7E2387
RGBrgb(126, 35, 135)
HSLhsl(295, 59%, 33%)
HSVhsv(295, 74%, 53%)
CMYKcmyk(6.7%, 74.1%, 0%, 47.1%)
CIE-LABlab(32.67, 51.58, -36.26)
CIE-LCHlch(32.67, 63.05, 324.89°)
OKLaboklab(44.21% 0.1392 -0.1011)
OKLCHoklch(44.21% 0.172 324)
XYZxyz(13.5780, 7.3878, 23.6278)
Luminance0.0739 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2387 #2C8723
analogous
#4C2387 #7E2387 #87235E
triadic
#7E2387 #877E23 #23877E
tetradic
#7E2387 #874C23 #2C8723 #235E87
square
#7E2387 #874C23 #2C8723 #235E87
split-complementary
#7E2387 #5E8723 #23874C
monochromatic
#230A26 #511656 #7E2387 #AB30B8 #C752D2

Accessibility & contrast

On white

8.48
#7E2387 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.48
#7E2387 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2387
8.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2387#FFFFFF#000000##FFFFFF
##7E23871.008.482.488.48
#FFFFFF8.481.0021.001.00
#0000002.4821.001.0021.00
##FFFFFF8.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00468A
Deuteranopia (green-blind)
#355085
Tritanopia (blue-blind)
#803553
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2387;
/* rgb */ color: rgb(126, 35, 135);
/* oklch */ color: oklch(44.2% 0.172 324.0);
Tailwind
colors: {
  custom: {
    50: '#a768aa',
    500: '#7e2387',
    950: '#000000',
  },
}
SCSS
$custom: #7e2387;
$custom-light: #a768aa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2387",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 135
  },
  "hsl": {
    "h": 294.6,
    "s": 58.824,
    "l": 33.333
  },
  "oklch": {
    "l": 0.44211,
    "c": 0.17201,
    "h": 324
  },
  "luminance": 0.07387
}

Semantic roles & 50–950 ramp

primary
#7E2387
secondary
#59B650
accent
#E24654
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100710
muted
#7F7A7F

Preview Lab

Preview with #7E2387

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

Preview Lab → · Contrast checker → · Palette generator →

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