#7E2163#7E2163

#7E2163 is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.0% C 0.146 H 341.9°. Best body text is #FFFFFF at 9.19:1 contrast (WCAG AA passes).

Color values

HEX#7E2163
RGBrgb(126, 33, 99)
HSLhsl(317, 58%, 31%)
HSVhsv(317, 74%, 49%)
CMYKcmyk(0%, 73.8%, 21.4%, 50.6%)
CIE-LABlab(30.46, 46.32, -16.95)
CIE-LCHlch(30.46, 49.32, 339.90°)
OKLaboklab(41.98% 0.1389 -0.0455)
OKLCHoklch(41.98% 0.146 341.9)
XYZxyz(11.4005, 6.4253, 12.4418)
Luminance0.0642 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2163 #217E3C
analogous
#6A217E #7E2163 #7E2134
triadic
#7E2163 #637E21 #21637E
tetradic
#7E2163 #7E6A21 #217E3C #21347E
square
#7E2163 #7E6A21 #217E3C #21347E
split-complementary
#7E2163 #347E21 #217E6A
monochromatic
#1D0817 #4E143D #7E2163 #AE2E89 #D04AA9

Accessibility & contrast

On white

9.19
#7E2163 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E2163 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2163
9.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2163#FFFFFF#000000##FFFFFF
##7E21631.009.192.289.19
#FFFFFF9.191.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293E65
Deuteranopia (green-blind)
#464D61
Tritanopia (blue-blind)
#86223F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e2163;
/* rgb */ color: rgb(126, 33, 99);
/* oklch */ color: oklch(42.0% 0.146 341.9);
Tailwind
colors: {
  custom: {
    50: '#a7658f',
    500: '#7e2163',
    950: '#000000',
  },
}
SCSS
$custom: #7e2163;
$custom-light: #a7658f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2163",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 99
  },
  "hsl": {
    "h": 317.419,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41984,
    "c": 0.14611,
    "h": 341.9
  },
  "luminance": 0.06424
}

Semantic roles & 50–950 ramp

primary
#7E2163
secondary
#4AB168
accent
#E27346
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E2163

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

Preview Lab → · Contrast checker → · Palette generator →

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