#7E2391#7E2391

#7E2391 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.9% C 0.181 H 320.0°. Best body text is #FFFFFF at 8.28:1 contrast (WCAG AA passes).

Color values

HEX#7E2391
RGBrgb(126, 35, 145)
HSLhsl(290, 61%, 35%)
HSVhsv(290, 76%, 57%)
CMYKcmyk(13.1%, 75.9%, 0%, 43.1%)
CIE-LABlab(33.31, 53.47, -41.42)
CIE-LCHlch(33.31, 67.63, 322.24°)
OKLaboklab(44.87% 0.1385 -0.1161)
OKLCHoklch(44.87% 0.181 320)
XYZxyz(14.3154, 7.6828, 27.5114)
Luminance0.0768 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2391 #369123
analogous
#472391 #7E2391 #91236D
triadic
#7E2391 #917E23 #23917E
tetradic
#7E2391 #914723 #369123 #236D91
square
#7E2391 #914723 #369123 #236D91
split-complementary
#7E2391 #6D9123 #239147
monochromatic
#280B2E #531760 #7E2391 #A92FC2 #C158D7

Accessibility & contrast

On white

8.28
#7E2391 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2391
8.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2391#FFFFFF#000000##FFFFFF
##7E23911.008.282.548.28
#FFFFFF8.281.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004894
Deuteranopia (green-blind)
#2D518F
Tritanopia (blue-blind)
#7E3958
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2391;
/* rgb */ color: rgb(126, 35, 145);
/* oklch */ color: oklch(44.9% 0.181 320.0);
Tailwind
colors: {
  custom: {
    50: '#a768b2',
    500: '#7e2391',
    950: '#000000',
  },
}
SCSS
$custom: #7e2391;
$custom-light: #a768b2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2391",
  "rgb": {
    "r": 126,
    "g": 35,
    "b": 145
  },
  "hsl": {
    "h": 289.636,
    "s": 61.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.44871,
    "c": 0.18074,
    "h": 320
  },
  "luminance": 0.07682
}

Semantic roles & 50–950 ramp

primary
#7E2391
secondary
#67BB55
accent
#E4445F
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2391

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

Preview Lab → · Contrast checker → · Palette generator →

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