#7E1F79#7E1F79

#7E1F79 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.0% C 0.165 H 330.3°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7E1F79
RGBrgb(126, 31, 121)
HSLhsl(303, 61%, 31%)
HSVhsv(303, 75%, 49%)
CMYKcmyk(0%, 75.4%, 4%, 50.6%)
CIE-LABlab(31.34, 50.52, -29.62)
CIE-LCHlch(31.34, 58.57, 329.62°)
OKLaboklab(42.99% 0.1433 -0.0817)
OKLCHoklch(42.99% 0.165 330.3)
XYZxyz(12.5453, 6.7970, 18.7367)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F79 #1F7E24
analogous
#531F7E #7E1F79 #7E1F49
triadic
#7E1F79 #797E1F #1F797E
tetradic
#7E1F79 #7E531F #1F7E24 #1F497E
square
#7E1F79 #7E531F #1F7E24 #1F497E
split-complementary
#7E1F79 #497E1F #1F7E53
monochromatic
#1C071B #4D134A #7E1F79 #AF2BA8 #D146CA

Accessibility & contrast

On white

8.90
#7E1F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E1F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F79
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F79#FFFFFF#000000##FFFFFF
##7E1F791.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#14417B
Deuteranopia (green-blind)
#3C4E77
Tritanopia (blue-blind)
#832B4A
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e1f79;
/* rgb */ color: rgb(126, 31, 121);
/* oklch */ color: oklch(43.0% 0.165 330.3);
Tailwind
colors: {
  custom: {
    50: '#a765a0',
    500: '#7e1f79',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f79;
$custom-light: #a765a0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f79",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 303.158,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42988,
    "c": 0.16498,
    "h": 330.3
  },
  "luminance": 0.06796
}

Semantic roles & 50–950 ramp

primary
#7E1F79
secondary
#48B14D
accent
#E44D44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060F
muted
#7F7A7E

Preview Lab

Preview with #7E1F79

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

Preview Lab → · Contrast checker → · Palette generator →

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