#7E2C81#7E2C81

#7E2C81 is a dark, vivid purple. Relative luminance 0.078; OKLCH L 44.8% C 0.155 H 326.3°. Best body text is #FFFFFF at 8.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2C81
RGBrgb(126, 44, 129)
HSLhsl(298, 49%, 34%)
HSVhsv(298, 66%, 51%)
CMYKcmyk(2.3%, 65.9%, 0%, 49.4%)
CIE-LABlab(33.61, 46.82, -31.04)
CIE-LCHlch(33.61, 56.18, 326.46°)
OKLaboklab(44.77% 0.1291 -0.086)
OKLCHoklch(44.77% 0.155 326.3)
XYZxyz(13.4671, 7.8228, 21.5652)
Luminance0.0782 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2C81 #2F812C
analogous
#542C81 #7E2C81 #812C5A
triadic
#7E2C81 #817E2C #2C817E
tetradic
#7E2C81 #81542C #2F812C #2C5A81
square
#7E2C81 #81542C #2F812C #2C5A81
split-complementary
#7E2C81 #5A812C #2C8154
monochromatic
#250D26 #511C53 #7E2C81 #AB3CAF #C55FC8

Accessibility & contrast

On white

8.19
#7E2C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7E2C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2C81
8.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2C81#FFFFFF#000000##FFFFFF
##7E2C811.008.192.568.19
#FFFFFF8.191.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4884
Deuteranopia (green-blind)
#3E537F
Tritanopia (blue-blind)
#813852
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7e2c81;
/* rgb */ color: rgb(126, 44, 129);
/* oklch */ color: oklch(44.8% 0.155 326.3);
Tailwind
colors: {
  custom: {
    50: '#a66ca6',
    500: '#7e2c81',
    950: '#000000',
  },
}
SCSS
$custom: #7e2c81;
$custom-light: #a66ca6;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2c81",
  "rgb": {
    "r": 126,
    "g": 44,
    "b": 129
  },
  "hsl": {
    "h": 297.882,
    "s": 49.133,
    "l": 33.922
  },
  "oklch": {
    "l": 0.4477,
    "c": 0.15508,
    "h": 326.3
  },
  "luminance": 0.07822
}

Semantic roles & 50–950 ramp

primary
#7E2C81
secondary
#5DAF5A
accent
#D94F54
background
#FAF6FA
surface
#F4ECF4
border
#CEC7CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E2C81

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

Preview Lab → · Contrast checker → · Palette generator →

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