#7E1156#7E1156

#7E1156 is a dark, vivid pink. Relative luminance 0.055; OKLCH L 40.1% C 0.155 H 348.2°. Best body text is #FFFFFF at 9.99:1 contrast (WCAG AA passes).

Color values

HEX#7E1156
RGBrgb(126, 17, 86)
HSLhsl(322, 76%, 28%)
HSVhsv(322, 87%, 49%)
CMYKcmyk(0%, 86.5%, 31.7%, 50.6%)
CIE-LABlab(28.14, 49.54, -12.02)
CIE-LCHlch(28.14, 50.98, 346.36°)
OKLaboklab(40.11% 0.1516 -0.0316)
OKLCHoklch(40.11% 0.155 348.2)
XYZxyz(10.4849, 5.5097, 9.3136)
Luminance0.0551 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1156 #117E39
analogous
#6F117E #7E1156 #7E1120
triadic
#7E1156 #567E11 #11567E
tetradic
#7E1156 #7E6F11 #117E39 #11207E
square
#7E1156 #7E6F11 #117E39 #11207E
split-complementary
#7E1156 #207E11 #117E6F
monochromatic
#1B0412 #480A31 #7E1156 #B4187B #E2279E

Accessibility & contrast

On white

9.99
#7E1156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.10
#7E1156 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1156
9.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1156#FFFFFF#000000##FFFFFF
##7E11561.009.992.109.99
#FFFFFF9.991.0021.001.00
#0000002.1021.001.0021.00
##FFFFFF9.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#253658
Deuteranopia (green-blind)
#454954
Tritanopia (blue-blind)
#880933
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #7e1156;
/* rgb */ color: rgb(126, 17, 86);
/* oklch */ color: oklch(40.1% 0.155 348.2);
Tailwind
colors: {
  custom: {
    50: '#a85f85',
    500: '#7e1156',
    950: '#000000',
  },
}
SCSS
$custom: #7e1156;
$custom-light: #a85f85;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1156",
  "rgb": {
    "r": 126,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 322.018,
    "s": 76.224,
    "l": 28.039
  },
  "oklch": {
    "l": 0.40111,
    "c": 0.15484,
    "h": 348.2
  },
  "luminance": 0.05508
}

Semantic roles & 50–950 ramp

primary
#7E1156
secondary
#37B465
accent
#F37B35
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10050B
muted
#7F7A7C

Preview Lab

Preview with #7E1156

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

Preview Lab → · Contrast checker → · Palette generator →

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