#7E1E6F#7E1E6F

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

Color values

HEX#7E1E6F
RGBrgb(126, 30, 111)
HSLhsl(309, 62%, 31%)
HSVhsv(309, 76%, 49%)
CMYKcmyk(0%, 76.2%, 11.9%, 50.6%)
CIE-LABlab(30.67, 49.23, -24.33)
CIE-LCHlch(30.67, 54.91, 333.70°)
OKLaboklab(42.33% 0.1438 -0.0665)
OKLCHoklch(42.33% 0.158 335.2)
XYZxyz(11.9379, 6.5129, 15.6642)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1E6F #1E7E2D
analogous
#5D1E7E #7E1E6F #7E1E3F
triadic
#7E1E6F #6F7E1E #1E6F7E
tetradic
#7E1E6F #7E5D1E #1E7E2D #1E3F7E
square
#7E1E6F #7E5D1E #1E7E2D #1E3F7E
split-complementary
#7E1E6F #3F7E1E #1E7E5D
monochromatic
#1B0618 #4D1243 #7E1E6F #AF2A9B #D244BC

Accessibility & contrast

On white

9.12
#7E1E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E1E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1E6F
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1E6F#FFFFFF#000000##FFFFFF
##7E1E6F1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e1e6f;
/* rgb */ color: rgb(126, 30, 111);
/* oklch */ color: oklch(42.3% 0.158 335.2);
Tailwind
colors: {
  custom: {
    50: '#a76598',
    500: '#7e1e6f',
    950: '#000000',
  },
}
SCSS
$custom: #7e1e6f;
$custom-light: #a76598;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1e6f",
  "rgb": {
    "r": 126,
    "g": 30,
    "b": 111
  },
  "hsl": {
    "h": 309.375,
    "s": 61.538,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42329,
    "c": 0.15837,
    "h": 335.2
  },
  "luminance": 0.06512
}

Semantic roles & 50–950 ramp

primary
#7E1E6F
secondary
#47B157
accent
#E55C43
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7E1E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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