#7E1D77#7E1D77

#7E1D77 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.166 H 331.3°. Best body text is #FFFFFF at 9.02:1 contrast (WCAG AA passes).

Color values

HEX#7E1D77
RGBrgb(126, 29, 119)
HSLhsl(304, 63%, 30%)
HSVhsv(304, 77%, 49%)
CMYKcmyk(0%, 77%, 5.6%, 50.6%)
CIE-LABlab(30.99, 50.86, -28.91)
CIE-LCHlch(30.99, 58.51, 330.39°)
OKLaboklab(42.7% 0.1452 -0.0797)
OKLCHoklch(42.7% 0.166 331.3)
XYZxyz(12.3733, 6.6473, 18.0806)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D77 #1D7E24
analogous
#541D7E #7E1D77 #7E1D46
triadic
#7E1D77 #777E1D #1D777E
tetradic
#7E1D77 #7E541D #1D7E24 #1D467E
square
#7E1D77 #7E541D #1D7E24 #1D467E
split-complementary
#7E1D77 #467E1D #1D7E54
monochromatic
#1B0619 #4C1248 #7E1D77 #B028A6 #D342C9

Accessibility & contrast

On white

9.02
#7E1D77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E1D77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D77
9.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D77#FFFFFF#000000##FFFFFF
##7E1D771.009.022.339.02
#FFFFFF9.021.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#144079
Deuteranopia (green-blind)
#3C4E75
Tritanopia (blue-blind)
#832948
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1d77;
/* rgb */ color: rgb(126, 29, 119);
/* oklch */ color: oklch(42.7% 0.166 331.3);
Tailwind
colors: {
  custom: {
    50: '#a7649e',
    500: '#7e1d77',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d77;
$custom-light: #a7649e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d77",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 119
  },
  "hsl": {
    "h": 304.33,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.427,
    "c": 0.16563,
    "h": 331.3
  },
  "luminance": 0.06646
}

Semantic roles & 50–950 ramp

primary
#7E1D77
secondary
#45B14D
accent
#E64E42
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1D77

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

Preview Lab → · Contrast checker → · Palette generator →

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