#7E2792#7E2792

#7E2792 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.3% C 0.177 H 319.4°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7E2792
RGBrgb(126, 39, 146)
HSLhsl(289, 58%, 36%)
HSVhsv(289, 73%, 57%)
CMYKcmyk(13.7%, 73.3%, 0%, 42.7%)
CIE-LABlab(33.91, 52.16, -41.08)
CIE-LCHlch(33.91, 66.40, 321.78°)
OKLaboklab(45.31% 0.1344 -0.1152)
OKLCHoklch(45.31% 0.177 319.4)
XYZxyz(14.5173, 7.9627, 27.9608)
Luminance0.0796 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2792 #3B9227
analogous
#492792 #7E2792 #922771
triadic
#7E2792 #927E27 #27927E
tetradic
#7E2792 #924927 #3B9227 #277192
square
#7E2792 #924927 #3B9227 #277192
split-complementary
#7E2792 #719227 #279249
monochromatic
#2B0D31 #541A62 #7E2792 #A834C2 #BE5FD4

Accessibility & contrast

On white

8.10
#7E2792 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7E2792 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2792
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2792#FFFFFF#000000##FFFFFF
##7E27921.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A95
Deuteranopia (green-blind)
#2F5390
Tritanopia (blue-blind)
#7E3C5A
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2792;
/* rgb */ color: rgb(126, 39, 146);
/* oklch */ color: oklch(45.3% 0.177 319.4);
Tailwind
colors: {
  custom: {
    50: '#a76ab2',
    500: '#7e2792',
    950: '#000000',
  },
}
SCSS
$custom: #7e2792;
$custom-light: #a76ab2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2792",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 146
  },
  "hsl": {
    "h": 288.785,
    "s": 57.838,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45313,
    "c": 0.17703,
    "h": 319.4
  },
  "luminance": 0.07962
}

Semantic roles & 50–950 ramp

primary
#7E2792
secondary
#6DBA5B
accent
#E14764
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2792

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

Preview Lab → · Contrast checker → · Palette generator →

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