#7E2D79#7E2D79

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

Color values

HEX#7E2D79
RGBrgb(126, 45, 121)
HSLhsl(304, 47%, 34%)
HSVhsv(304, 64%, 49%)
CMYKcmyk(0%, 64.3%, 4%, 50.6%)
CIE-LABlab(33.34, 44.91, -26.47)
CIE-LCHlch(33.34, 52.14, 329.48°)
OKLaboklab(44.43% 0.1272 -0.0728)
OKLCHoklch(44.43% 0.147 330.2)
XYZxyz(12.9937, 7.6938, 18.8861)
Luminance0.0769 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D79 #2D7E32
analogous
#5A2D7E #7E2D79 #7E2D50
triadic
#7E2D79 #797E2D #2D797E
tetradic
#7E2D79 #7E5A2D #2D7E32 #2D507E
square
#7E2D79 #7E5A2D #2D7E32 #2D507E
split-complementary
#7E2D79 #507E2D #2D7E5A
monochromatic
#240D22 #511D4E #7E2D79 #AB3DA4 #C65FC0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2D79#FFFFFF#000000##FFFFFF
##7E2D791.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)
#27477B
Deuteranopia (green-blind)
#435277
Tritanopia (blue-blind)
#83364F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7e2d79;
/* rgb */ color: rgb(126, 45, 121);
/* oklch */ color: oklch(44.4% 0.147 330.2);
Tailwind
colors: {
  custom: {
    50: '#a66ca0',
    500: '#7e2d79',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d79;
$custom-light: #a66ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d79",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 121
  },
  "hsl": {
    "h": 303.704,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.4443,
    "c": 0.14655,
    "h": 330.2
  },
  "luminance": 0.07693
}

Semantic roles & 50–950 ramp

primary
#7E2D79
secondary
#5AAC5F
accent
#D75951
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2D79

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

Preview Lab → · Contrast checker → · Palette generator →

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