#7E2155#7E2155

#7E2155 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.4% C 0.137 H 350.5°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7E2155
RGBrgb(126, 33, 85)
HSLhsl(326, 58%, 31%)
HSVhsv(326, 74%, 49%)
CMYKcmyk(0%, 73.8%, 32.5%, 50.6%)
CIE-LABlab(29.86, 44.40, -8.74)
CIE-LCHlch(29.86, 45.26, 348.86°)
OKLaboklab(41.35% 0.1356 -0.0227)
OKLCHoklch(41.35% 0.137 350.5)
XYZxyz(10.7883, 6.1804, 9.2174)
Luminance0.0618 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2155 #217E4A
analogous
#78217E #7E2155 #7E2126
triadic
#7E2155 #557E21 #21557E
tetradic
#7E2155 #7E7821 #217E4A #21267E
square
#7E2155 #7E7821 #217E4A #21267E
split-complementary
#7E2155 #267E21 #217E78
monochromatic
#1D0814 #4E1434 #7E2155 #AE2E76 #D04A95

Accessibility & contrast

On white

9.39
#7E2155 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E2155
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2155#FFFFFF#000000##FFFFFF
##7E21551.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303C56
Deuteranopia (green-blind)
#4A4C53
Tritanopia (blue-blind)
#881B38
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2155;
/* rgb */ color: rgb(126, 33, 85);
/* oklch */ color: oklch(41.4% 0.137 350.5);
Tailwind
colors: {
  custom: {
    50: '#a76584',
    500: '#7e2155',
    950: '#000000',
  },
}
SCSS
$custom: #7e2155;
$custom-light: #a76584;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2155",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 85
  },
  "hsl": {
    "h": 326.452,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41352,
    "c": 0.13748,
    "h": 350.5
  },
  "luminance": 0.06179
}

Semantic roles & 50–950 ramp

primary
#7E2155
secondary
#4AB177
accent
#E28B46
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E2155

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

Preview Lab → · Contrast checker → · Palette generator →

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