#7E1790#7E1790

#7E1790 is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.191 H 320.9°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7E1790
RGBrgb(126, 23, 144)
HSLhsl(291, 72%, 33%)
HSVhsv(291, 84%, 56%)
CMYKcmyk(12.5%, 84%, 0%, 43.5%)
CIE-LABlab(31.95, 57.03, -42.99)
CIE-LCHlch(31.95, 71.42, 322.99°)
OKLaboklab(43.89% 0.1485 -0.1207)
OKLCHoklch(43.89% 0.191 320.9)
XYZxyz(13.9440, 7.0628, 27.0089)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1790 #299017
analogous
#411790 #7E1790 #901766
triadic
#7E1790 #907E17 #17907E
tetradic
#7E1790 #904117 #299017 #176690
square
#7E1790 #904117 #299017 #176690
split-complementary
#7E1790 #669017 #179041
monochromatic
#220626 #500F5B #7E1790 #AC1FC5 #C941E1

Accessibility & contrast

On white

8.71
#7E1790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E1790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1790
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1790#FFFFFF#000000##FFFFFF
##7E17901.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004493
Deuteranopia (green-blind)
#274F8D
Tritanopia (blue-blind)
#7F3355
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e1790;
/* rgb */ color: rgb(126, 23, 144);
/* oklch */ color: oklch(43.9% 0.191 320.9);
Tailwind
colors: {
  custom: {
    50: '#a764b1',
    500: '#7e1790',
    950: '#000000',
  },
}
SCSS
$custom: #7e1790;
$custom-light: #a764b1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1790",
  "rgb": {
    "r": 126,
    "g": 23,
    "b": 144
  },
  "hsl": {
    "h": 291.074,
    "s": 72.455,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43886,
    "c": 0.19139,
    "h": 320.9
  },
  "luminance": 0.07062
}

Semantic roles & 50–950 ramp

primary
#7E1790
secondary
#55C142
accent
#EF3954
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7E1790

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

Preview Lab → · Contrast checker → · Palette generator →

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