#7E1F5D#7E1F5D

#7E1F5D is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.5% C 0.145 H 345.2°. Best body text is #FFFFFF at 9.37:1 contrast (WCAG AA passes).

Color values

HEX#7E1F5D
RGBrgb(126, 31, 93)
HSLhsl(321, 61%, 31%)
HSVhsv(321, 75%, 49%)
CMYKcmyk(0%, 75.4%, 26.2%, 50.6%)
CIE-LABlab(29.93, 46.21, -13.87)
CIE-LCHlch(29.93, 48.25, 343.29°)
OKLaboklab(41.51% 0.1399 -0.0369)
OKLCHoklch(41.51% 0.145 345.2)
XYZxyz(11.0704, 6.2071, 10.9689)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1F5D #1F7E40
analogous
#6F1F7E #7E1F5D #7E1F2D
triadic
#7E1F5D #5D7E1F #1F5D7E
tetradic
#7E1F5D #7E6F1F #1F7E40 #1F2D7E
square
#7E1F5D #7E6F1F #1F7E40 #1F2D7E
split-complementary
#7E1F5D #2D7E1F #1F7E6F
monochromatic
#1C0714 #4D1339 #7E1F5D #AF2B81 #D146A1

Accessibility & contrast

On white

9.37
#7E1F5D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7E1F5D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1F5D
9.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1F5D#FFFFFF#000000##FFFFFF
##7E1F5D1.009.372.249.37
#FFFFFF9.371.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B3C5F
Deuteranopia (green-blind)
#474C5B
Tritanopia (blue-blind)
#871D3B
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1f5d;
/* rgb */ color: rgb(126, 31, 93);
/* oklch */ color: oklch(41.5% 0.145 345.2);
Tailwind
colors: {
  custom: {
    50: '#a7648b',
    500: '#7e1f5d',
    950: '#000000',
  },
}
SCSS
$custom: #7e1f5d;
$custom-light: #a7648b;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1f5d",
  "rgb": {
    "r": 126,
    "g": 31,
    "b": 93
  },
  "hsl": {
    "h": 320.842,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41509,
    "c": 0.14468,
    "h": 345.2
  },
  "luminance": 0.06206
}

Semantic roles & 50–950 ramp

primary
#7E1F5D
secondary
#48B16C
accent
#E47C44
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E1F5D

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

Preview Lab → · Contrast checker → · Palette generator →

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