#7E2790#7E2790

#7E2790 is a mid, vivid purple. Relative luminance 0.079; OKLCH L 45.2% C 0.175 H 320.2°. Best body text is #FFFFFF at 8.14:1 contrast (WCAG AA passes).

Color values

HEX#7E2790
RGBrgb(126, 39, 144)
HSLhsl(290, 57%, 36%)
HSVhsv(290, 73%, 56%)
CMYKcmyk(12.5%, 72.9%, 0%, 43.5%)
CIE-LABlab(33.78, 51.77, -40.06)
CIE-LCHlch(33.78, 65.46, 322.27°)
OKLaboklab(45.18% 0.1346 -0.1122)
OKLCHoklch(45.18% 0.175 320.2)
XYZxyz(14.3631, 7.9010, 27.1486)
Luminance0.0790 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2790 #399027
analogous
#492790 #7E2790 #90276D
triadic
#7E2790 #907E27 #27907E
tetradic
#7E2790 #904927 #399027 #276D90
square
#7E2790 #904927 #399027 #276D90
split-complementary
#7E2790 #6D9027 #279049
monochromatic
#2A0D30 #541A60 #7E2790 #A834C0 #BF5ED3

Accessibility & contrast

On white

8.14
#7E2790 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.58
#7E2790 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2790
8.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2790#FFFFFF#000000##FFFFFF
##7E27901.008.142.588.14
#FFFFFF8.141.0021.001.00
#0000002.5821.001.0021.00
##FFFFFF8.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004993
Deuteranopia (green-blind)
#31528E
Tritanopia (blue-blind)
#7F3B59
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2790;
/* rgb */ color: rgb(126, 39, 144);
/* oklch */ color: oklch(45.2% 0.175 320.2);
Tailwind
colors: {
  custom: {
    50: '#a76ab1',
    500: '#7e2790',
    950: '#000000',
  },
}
SCSS
$custom: #7e2790;
$custom-light: #a76ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2790",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 144
  },
  "hsl": {
    "h": 289.714,
    "s": 57.377,
    "l": 35.882
  },
  "oklch": {
    "l": 0.4518,
    "c": 0.17522,
    "h": 320.2
  },
  "luminance": 0.079
}

Semantic roles & 50–950 ramp

primary
#7E2790
secondary
#6AB95A
accent
#E14761
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2790

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

Preview Lab → · Contrast checker → · Palette generator →

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