#7E1F71#7E1F71

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

Color values

HEX#7E1F71
RGBrgb(126, 31, 113)
HSLhsl(308, 61%, 31%)
HSVhsv(308, 75%, 49%)
CMYKcmyk(0%, 75.4%, 10.3%, 50.6%)
CIE-LABlab(30.90, 49.20, -25.25)
CIE-LCHlch(30.90, 55.30, 332.84°)
OKLaboklab(42.53% 0.1429 -0.0691)
OKLCHoklch(42.53% 0.159 334.2)
XYZxyz(12.0749, 6.6089, 16.2593)
Luminance0.0661 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F71 #1F7E2C
analogous
#5B1F7E #7E1F71 #7E1F41
triadic
#7E1F71 #717E1F #1F717E
tetradic
#7E1F71 #7E5B1F #1F7E2C #1F417E
square
#7E1F71 #7E5B1F #1F7E2C #1F417E
split-complementary
#7E1F71 #417E1F #1F7E5B
monochromatic
#1C0719 #4D1345 #7E1F71 #AF2B9D #D146BE

Accessibility & contrast

On white

9.05
#7E1F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1F71
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F71#FFFFFF#000000##FFFFFF
##7E1F711.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D4073
Deuteranopia (green-blind)
#404E6F
Tritanopia (blue-blind)
#842846
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e1f71;
/* rgb */ color: rgb(126, 31, 113);
/* oklch */ color: oklch(42.5% 0.159 334.2);
Tailwind
colors: {
  custom: {
    50: '#a7659a',
    500: '#7e1f71',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f71;
$custom-light: #a7659a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f71",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 308.211,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.42528,
    "c": 0.15873,
    "h": 334.2
  },
  "luminance": 0.06608
}

Semantic roles & 50–950 ramp

primary
#7E1F71
secondary
#48B156
accent
#E45A44
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1F71

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

Preview Lab → · Contrast checker → · Palette generator →

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