#7E1D74#7E1D74

#7E1D74 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.163 H 332.7°. Best body text is #FFFFFF at 9.07:1 contrast (WCAG AA passes).

Color values

HEX#7E1D74
RGBrgb(126, 29, 116)
HSLhsl(306, 63%, 30%)
HSVhsv(306, 77%, 49%)
CMYKcmyk(0%, 77%, 7.9%, 50.6%)
CIE-LABlab(30.82, 50.37, -27.28)
CIE-LCHlch(30.82, 57.28, 331.57°)
OKLaboklab(42.53% 0.1451 -0.0749)
OKLCHoklch(42.53% 0.163 332.7)
XYZxyz(12.1960, 6.5763, 17.1466)
Luminance0.0658 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D74 #1D7E27
analogous
#581D7E #7E1D74 #7E1D43
triadic
#7E1D74 #747E1D #1D747E
tetradic
#7E1D74 #7E581D #1D7E27 #1D437E
square
#7E1D74 #7E581D #1D7E27 #1D437E
split-complementary
#7E1D74 #437E1D #1D7E58
monochromatic
#1B0618 #4C1246 #7E1D74 #B028A2 #D342C4

Accessibility & contrast

On white

9.07
#7E1D74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E1D74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D74
9.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D74#FFFFFF#000000##FFFFFF
##7E1D741.009.072.329.07
#FFFFFF9.071.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#184076
Deuteranopia (green-blind)
#3D4D72
Tritanopia (blue-blind)
#842847
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1d74;
/* rgb */ color: rgb(126, 29, 116);
/* oklch */ color: oklch(42.5% 0.163 332.7);
Tailwind
colors: {
  custom: {
    50: '#a7649c',
    500: '#7e1d74',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d74;
$custom-light: #a7649c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d74",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 116
  },
  "hsl": {
    "h": 306.186,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42526,
    "c": 0.1633,
    "h": 332.7
  },
  "luminance": 0.06575
}

Semantic roles & 50–950 ramp

primary
#7E1D74
secondary
#45B150
accent
#E65342
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1D74

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

Preview Lab → · Contrast checker → · Palette generator →

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