#7E2799#7E2799

#7E2799 is a mid, vivid purple. Relative luminance 0.082; OKLCH L 45.8% C 0.183 H 316.8°. Best body text is #FFFFFF at 7.96:1 contrast (WCAG AA passes).

Color values

HEX#7E2799
RGBrgb(126, 39, 153)
HSLhsl(286, 59%, 38%)
HSVhsv(286, 75%, 60%)
CMYKcmyk(17.6%, 74.5%, 0%, 40%)
CIE-LABlab(34.37, 53.56, -44.61)
CIE-LCHlch(34.37, 69.71, 320.21°)
OKLaboklab(45.79% 0.1338 -0.1255)
OKLCHoklch(45.79% 0.183 316.8)
XYZxyz(15.0786, 8.1872, 30.9168)
Luminance0.0819 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2799 #429927
analogous
#452799 #7E2799 #99277B
triadic
#7E2799 #997E27 #27997E
tetradic
#7E2799 #994527 #429927 #277B99
square
#7E2799 #994527 #429927 #277B99
split-complementary
#7E2799 #7B9927 #279945
monochromatic
#2E0E37 #561B68 #7E2799 #A633CA #BC63D7

Accessibility & contrast

On white

7.96
#7E2799 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.64
#7E2799 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2799
7.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2799#FFFFFF#000000##FFFFFF
##7E27991.007.962.647.96
#FFFFFF7.961.0021.001.00
#0000002.6421.001.0021.00
##FFFFFF7.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004C9C
Deuteranopia (green-blind)
#285396
Tritanopia (blue-blind)
#7D3F5E
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2799;
/* rgb */ color: rgb(126, 39, 153);
/* oklch */ color: oklch(45.8% 0.183 316.8);
Tailwind
colors: {
  custom: {
    50: '#a76ab8',
    500: '#7e2799',
    950: '#000000',
  },
}
SCSS
$custom: #7e2799;
$custom-light: #a76ab8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2799",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 153
  },
  "hsl": {
    "h": 285.789,
    "s": 59.375,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45792,
    "c": 0.18343,
    "h": 316.8
  },
  "luminance": 0.08187
}

Semantic roles & 50–950 ramp

primary
#7E2799
secondary
#75BD5F
accent
#E3456B
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2799

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

Preview Lab → · Contrast checker → · Palette generator →

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