#7E1D6F#7E1D6F

#7E1D6F is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.160 H 335.2°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7E1D6F
RGBrgb(126, 29, 111)
HSLhsl(309, 63%, 30%)
HSVhsv(309, 77%, 49%)
CMYKcmyk(0%, 77%, 11.9%, 50.6%)
CIE-LABlab(30.55, 49.57, -24.52)
CIE-LCHlch(30.55, 55.30, 333.68°)
OKLaboklab(42.24% 0.1448 -0.067)
OKLCHoklch(42.24% 0.16 335.2)
XYZxyz(11.9129, 6.4631, 15.6559)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D6F #1D7E2C
analogous
#5C1D7E #7E1D6F #7E1D3F
triadic
#7E1D6F #6F7E1D #1D6F7E
tetradic
#7E1D6F #7E5C1D #1D7E2C #1D3F7E
square
#7E1D6F #7E5C1D #1D7E2C #1D3F7E
split-complementary
#7E1D6F #3F7E1D #1D7E5C
monochromatic
#1B0617 #4C1243 #7E1D6F #B0289B #D342BD

Accessibility & contrast

On white

9.16
#7E1D6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E1D6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1D6F
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D6F#FFFFFF#000000##FFFFFF
##7E1D6F1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3F71
Deuteranopia (green-blind)
#404D6D
Tritanopia (blue-blind)
#842544
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1d6f;
/* rgb */ color: rgb(126, 29, 111);
/* oklch */ color: oklch(42.2% 0.160 335.2);
Tailwind
colors: {
  custom: {
    50: '#a76498',
    500: '#7e1d6f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d6f;
$custom-light: #a76498;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d6f",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 111
  },
  "hsl": {
    "h": 309.278,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42244,
    "c": 0.15951,
    "h": 335.2
  },
  "luminance": 0.06462
}

Semantic roles & 50–950 ramp

primary
#7E1D6F
secondary
#45B156
accent
#E65B42
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1D6F

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

Preview Lab → · Contrast checker → · Palette generator →

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