#7E2797#7E2797

#7E2797 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.7% C 0.182 H 317.5°. Best body text is #FFFFFF at 8.00:1 contrast (WCAG AA passes).

Color values

HEX#7E2797
RGBrgb(126, 39, 151)
HSLhsl(287, 59%, 37%)
HSVhsv(287, 74%, 59%)
CMYKcmyk(16.6%, 74.2%, 0%, 40.8%)
CIE-LABlab(34.24, 53.16, -43.61)
CIE-LCHlch(34.24, 68.76, 320.64°)
OKLaboklab(45.65% 0.134 -0.1226)
OKLCHoklch(45.65% 0.182 317.5)
XYZxyz(14.9148, 8.1217, 30.0542)
Luminance0.0812 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2797 #409727
analogous
#462797 #7E2797 #972778
triadic
#7E2797 #977E27 #27977E
tetradic
#7E2797 #974627 #409727 #277897
square
#7E2797 #974627 #409727 #277897
split-complementary
#7E2797 #789727 #279746
monochromatic
#2D0E36 #551A66 #7E2797 #A734C8 #BC62D6

Accessibility & contrast

On white

8.00
#7E2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7E2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2797
8.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2797#FFFFFF#000000##FFFFFF
##7E27971.008.002.628.00
#FFFFFF8.001.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#2A5394
Tritanopia (blue-blind)
#7D3E5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7e2797;
/* rgb */ color: rgb(126, 39, 151);
/* oklch */ color: oklch(45.7% 0.182 317.5);
Tailwind
colors: {
  custom: {
    50: '#a76ab6',
    500: '#7e2797',
    950: '#000000',
  },
}
SCSS
$custom: #7e2797;
$custom-light: #a76ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2797",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 286.607,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45653,
    "c": 0.18159,
    "h": 317.5
  },
  "luminance": 0.08121
}

Semantic roles & 50–950 ramp

primary
#7E2797
secondary
#73BC5E
accent
#E24669
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2797

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

Preview Lab → · Contrast checker → · Palette generator →

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