#7E297D#7E297D

#7E297D is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.2% C 0.156 H 328.3°. Best body text is #FFFFFF at 8.40:1 contrast (WCAG AA passes).

Color values

HEX#7E297D
RGBrgb(126, 41, 125)
HSLhsl(301, 51%, 33%)
HSVhsv(301, 67%, 49%)
CMYKcmyk(0%, 67.5%, 0.8%, 50.6%)
CIE-LABlab(32.93, 47.38, -29.63)
CIE-LCHlch(32.93, 55.88, 327.98°)
OKLaboklab(44.2% 0.1325 -0.0818)
OKLCHoklch(44.2% 0.156 328.3)
XYZxyz(13.0986, 7.5031, 20.1564)
Luminance0.0750 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E297D #297E2A
analogous
#54297E #7E297D #7E2952
triadic
#7E297D #7D7E29 #297D7E
tetradic
#7E297D #7E5429 #297E2A #29527E
square
#7E297D #7E5429 #297E2A #29527E
split-complementary
#7E297D #527E29 #297E54
monochromatic
#220B21 #501A4F #7E297D #AC38AB #C959C8

Accessibility & contrast

On white

8.40
#7E297D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7E297D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E297D
8.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E297D#FFFFFF#000000##FFFFFF
##7E297D1.008.402.508.40
#FFFFFF8.401.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E467F
Deuteranopia (green-blind)
#3F517B
Tritanopia (blue-blind)
#82344F
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e297d;
/* rgb */ color: rgb(126, 41, 125);
/* oklch */ color: oklch(44.2% 0.156 328.3);
Tailwind
colors: {
  custom: {
    50: '#a66aa3',
    500: '#7e297d',
    950: '#000000',
  },
}
SCSS
$custom: #7e297d;
$custom-light: #a66aa3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e297d",
  "rgb": {
    "r": 126,
    "g": 41,
    "b": 125
  },
  "hsl": {
    "h": 300.706,
    "s": 50.898,
    "l": 32.745
  },
  "oklch": {
    "l": 0.44202,
    "c": 0.15574,
    "h": 328.3
  },
  "luminance": 0.07502
}

Semantic roles & 50–950 ramp

primary
#7E297D
secondary
#55AE56
accent
#DA4F4D
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10070F
muted
#7F7A7F

Preview Lab

Preview with #7E297D

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

Preview Lab → · Contrast checker → · Palette generator →

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