#7E2D71#7E2D71

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

Color values

HEX#7E2D71
RGBrgb(126, 45, 113)
HSLhsl(310, 47%, 34%)
HSVhsv(310, 64%, 49%)
CMYKcmyk(0%, 64.3%, 10.3%, 50.6%)
CIE-LABlab(32.93, 43.52, -22.07)
CIE-LCHlch(32.93, 48.79, 333.11°)
OKLaboklab(44% 0.1262 -0.0601)
OKLCHoklch(44% 0.14 334.5)
XYZxyz(12.5233, 7.5056, 16.4087)
Luminance0.0751 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2D71 #2D7E3A
analogous
#622D7E #7E2D71 #7E2D48
triadic
#7E2D71 #717E2D #2D717E
tetradic
#7E2D71 #7E622D #2D7E3A #2D487E
square
#7E2D71 #7E622D #2D7E3A #2D487E
split-complementary
#7E2D71 #487E2D #2D7E62
monochromatic
#240D20 #511D49 #7E2D71 #AB3D99 #C65FB6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2D71#FFFFFF#000000##FFFFFF
##7E2D711.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)
#2C4673
Deuteranopia (green-blind)
#46526F
Tritanopia (blue-blind)
#84324A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7e2d71;
/* rgb */ color: rgb(126, 45, 113);
/* oklch */ color: oklch(44.0% 0.140 334.5);
Tailwind
colors: {
  custom: {
    50: '#a66c9a',
    500: '#7e2d71',
    950: '#000000',
  },
}
SCSS
$custom: #7e2d71;
$custom-light: #a66c9a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2d71",
  "rgb": {
    "r": 126,
    "g": 45,
    "b": 113
  },
  "hsl": {
    "h": 309.63,
    "s": 47.368,
    "l": 33.529
  },
  "oklch": {
    "l": 0.44002,
    "c": 0.13978,
    "h": 334.5
  },
  "luminance": 0.07505
}

Semantic roles & 50–950 ramp

primary
#7E2D71
secondary
#5AAC68
accent
#D76651
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7E2D71

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

Preview Lab → · Contrast checker → · Palette generator →

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