#7E1D6E#7E1D6E

#7E1D6E is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.159 H 335.7°. Best body text is #FFFFFF at 9.18:1 contrast (WCAG AA passes).

Color values

HEX#7E1D6E
RGBrgb(126, 29, 110)
HSLhsl(310, 63%, 30%)
HSVhsv(310, 77%, 49%)
CMYKcmyk(0%, 77%, 12.7%, 50.6%)
CIE-LABlab(30.50, 49.41, -23.96)
CIE-LCHlch(30.50, 54.91, 334.13°)
OKLaboklab(42.19% 0.1447 -0.0654)
OKLCHoklch(42.19% 0.159 335.7)
XYZxyz(11.8582, 6.4412, 15.3676)
Luminance0.0644 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1D6E #1D7E2D
analogous
#5D1D7E #7E1D6E #7E1D3D
triadic
#7E1D6E #6E7E1D #1D6E7E
tetradic
#7E1D6E #7E5D1D #1D7E2D #1D3D7E
square
#7E1D6E #7E5D1D #1D7E2D #1D3D7E
split-complementary
#7E1D6E #3D7E1D #1D7E5D
monochromatic
#1B0617 #4C1243 #7E1D6E #B02899 #D342BB

Accessibility & contrast

On white

9.18
#7E1D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1D6E
9.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1D6E#FFFFFF#000000##FFFFFF
##7E1D6E1.009.182.299.18
#FFFFFF9.181.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3F70
Deuteranopia (green-blind)
#404D6C
Tritanopia (blue-blind)
#852543
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e1d6e;
/* rgb */ color: rgb(126, 29, 110);
/* oklch */ color: oklch(42.2% 0.159 335.7);
Tailwind
colors: {
  custom: {
    50: '#a76498',
    500: '#7e1d6e',
    950: '#000000',
  },
}
SCSS
$custom: #7e1d6e;
$custom-light: #a76498;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1d6e",
  "rgb": {
    "r": 126,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 309.897,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42189,
    "c": 0.15877,
    "h": 335.7
  },
  "luminance": 0.0644
}

Semantic roles & 50–950 ramp

primary
#7E1D6E
secondary
#45B157
accent
#E65D42
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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