#7E2E76#7E2E76

#7E2E76 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 44.4% C 0.142 H 331.8°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7E2E76
RGBrgb(126, 46, 118)
HSLhsl(306, 47%, 34%)
HSVhsv(306, 63%, 49%)
CMYKcmyk(0%, 63.5%, 6.3%, 50.6%)
CIE-LABlab(33.35, 43.93, -24.57)
CIE-LCHlch(33.35, 50.33, 330.78°)
OKLaboklab(44.39% 0.1256 -0.0673)
OKLCHoklch(44.39% 0.142 331.8)
XYZxyz(12.8512, 7.6986, 17.9451)
Luminance0.0770 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2E76 #2E7E36
analogous
#5E2E7E #7E2E76 #7E2E4E
triadic
#7E2E76 #767E2E #2E767E
tetradic
#7E2E76 #7E5E2E #2E7E36 #2E4E7E
square
#7E2E76 #7E5E2E #2E7E36 #2E4E7E
split-complementary
#7E2E76 #4E7E2E #2E7E5E
monochromatic
#240D22 #511E4C #7E2E76 #AB3EA0 #C561BB

Accessibility & contrast

On white

8.27
#7E2E76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7E2E76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2E76
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2E76#FFFFFF#000000##FFFFFF
##7E2E761.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A4778
Deuteranopia (green-blind)
#455274
Tritanopia (blue-blind)
#83354D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2e76;
/* rgb */ color: rgb(126, 46, 118);
/* oklch */ color: oklch(44.4% 0.142 331.8);
Tailwind
colors: {
  custom: {
    50: '#a66c9e',
    500: '#7e2e76',
    950: '#000000',
  },
}
SCSS
$custom: #7e2e76;
$custom-light: #a66c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2e76",
  "rgb": {
    "r": 126,
    "g": 46,
    "b": 118
  },
  "hsl": {
    "h": 306,
    "s": 46.512,
    "l": 33.725
  },
  "oklch": {
    "l": 0.44387,
    "c": 0.14246,
    "h": 331.8
  },
  "luminance": 0.07698
}

Semantic roles & 50–950 ramp

primary
#7E2E76
secondary
#5CAC64
accent
#D65F52
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2E76

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

Preview Lab → · Contrast checker → · Palette generator →

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