#7E1F78#7E1F78

#7E1F78 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.164 H 330.8°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7E1F78
RGBrgb(126, 31, 120)
HSLhsl(304, 61%, 31%)
HSVhsv(304, 75%, 49%)
CMYKcmyk(0%, 75.4%, 4.8%, 50.6%)
CIE-LABlab(31.28, 50.35, -29.08)
CIE-LCHlch(31.28, 58.15, 329.99°)
OKLaboklab(42.93% 0.1433 -0.0802)
OKLCHoklch(42.93% 0.164 330.8)
XYZxyz(12.4843, 6.7726, 18.4154)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F78 #1F7E25
analogous
#541F7E #7E1F78 #7E1F48
triadic
#7E1F78 #787E1F #1F787E
tetradic
#7E1F78 #7E541F #1F7E25 #1F487E
square
#7E1F78 #7E541F #1F7E25 #1F487E
split-complementary
#7E1F78 #487E1F #1F7E54
monochromatic
#1C071A #4D1349 #7E1F78 #AF2BA7 #D146C9

Accessibility & contrast

On white

8.92
#7E1F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F78
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F78#FFFFFF#000000##FFFFFF
##7E1F781.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#15417A
Deuteranopia (green-blind)
#3C4E76
Tritanopia (blue-blind)
#832B49
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1f78;
/* rgb */ color: rgb(126, 31, 120);
/* oklch */ color: oklch(42.9% 0.164 330.8);
Tailwind
colors: {
  custom: {
    50: '#a7659f',
    500: '#7e1f78',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f78;
$custom-light: #a7659f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f78",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 303.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42929,
    "c": 0.16418,
    "h": 330.8
  },
  "luminance": 0.06772
}

Semantic roles & 50–950 ramp

primary
#7E1F78
secondary
#48B14E
accent
#E44E44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F78

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

Preview Lab → · Contrast checker → · Palette generator →

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