#7E1F77#7E1F77

#7E1F77 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.9% C 0.163 H 331.2°. Best body text is #FFFFFF at 8.94:1 contrast (WCAG AA passes).

Color values

HEX#7E1F77
RGBrgb(126, 31, 119)
HSLhsl(304, 61%, 31%)
HSVhsv(304, 75%, 49%)
CMYKcmyk(0%, 75.4%, 5.6%, 50.6%)
CIE-LABlab(31.23, 50.19, -28.54)
CIE-LCHlch(31.23, 57.73, 330.38°)
OKLaboklab(42.87% 0.1432 -0.0786)
OKLCHoklch(42.87% 0.163 331.2)
XYZxyz(12.4239, 6.7485, 18.0974)
Luminance0.0675 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F77 #1F7E26
analogous
#551F7E #7E1F77 #7E1F47
triadic
#7E1F77 #777E1F #1F777E
tetradic
#7E1F77 #7E551F #1F7E26 #1F477E
square
#7E1F77 #7E551F #1F7E26 #1F477E
split-complementary
#7E1F77 #477E1F #1F7E55
monochromatic
#1C071A #4D1349 #7E1F77 #AF2BA5 #D146C7

Accessibility & contrast

On white

8.94
#7E1F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7E1F77 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F77
8.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F77#FFFFFF#000000##FFFFFF
##7E1F771.008.942.358.94
#FFFFFF8.941.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174179
Deuteranopia (green-blind)
#3D4E75
Tritanopia (blue-blind)
#832A49
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1f77;
/* rgb */ color: rgb(126, 31, 119);
/* oklch */ color: oklch(42.9% 0.163 331.2);
Tailwind
colors: {
  custom: {
    50: '#a7659e',
    500: '#7e1f77',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f77;
$custom-light: #a7659e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f77",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 304.421,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.4287,
    "c": 0.16339,
    "h": 331.2
  },
  "luminance": 0.06748
}

Semantic roles & 50–950 ramp

primary
#7E1F77
secondary
#48B14F
accent
#E45044
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F77

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

Preview Lab → · Contrast checker → · Palette generator →

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