#7E2798#7E2798

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

Color values

HEX#7E2798
RGBrgb(126, 39, 152)
HSLhsl(286, 59%, 37%)
HSVhsv(286, 74%, 60%)
CMYKcmyk(17.1%, 74.3%, 0%, 40.4%)
CIE-LABlab(34.30, 53.36, -44.11)
CIE-LCHlch(34.30, 69.23, 320.42°)
OKLaboklab(45.72% 0.1339 -0.124)
OKLCHoklch(45.72% 0.183 317.2)
XYZxyz(14.9964, 8.1543, 30.4837)
Luminance0.0815 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2798 #419827
analogous
#462798 #7E2798 #982779
triadic
#7E2798 #987E27 #27987E
tetradic
#7E2798 #984627 #419827 #277998
square
#7E2798 #984627 #419827 #277998
split-complementary
#7E2798 #799827 #279846
monochromatic
#2D0E37 #561B67 #7E2798 #A633C9 #BC63D7

Accessibility & contrast

On white

7.98
#7E2798 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.63
#7E2798 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2798
7.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2798#FFFFFF#000000##FFFFFF
##7E27981.007.982.637.98
#FFFFFF7.981.0021.001.00
#0000002.6321.001.0021.00
##FFFFFF7.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9B
Deuteranopia (green-blind)
#295395
Tritanopia (blue-blind)
#7D3E5D
Achromatopsia (no color)
#515151

Design tokens & code

CSS
--color: #7e2798;
/* rgb */ color: rgb(126, 39, 152);
/* oklch */ color: oklch(45.7% 0.183 317.2);
Tailwind
colors: {
  custom: {
    50: '#a76ab7',
    500: '#7e2798',
    950: '#000000',
  },
}
SCSS
$custom: #7e2798;
$custom-light: #a76ab7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2798",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 152
  },
  "hsl": {
    "h": 286.195,
    "s": 59.162,
    "l": 37.451
  },
  "oklch": {
    "l": 0.45723,
    "c": 0.18252,
    "h": 317.2
  },
  "luminance": 0.08154
}

Semantic roles & 50–950 ramp

primary
#7E2798
secondary
#74BC5E
accent
#E2456A
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7E2798

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

Preview Lab → · Contrast checker → · Palette generator →

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