#7E2158#7E2158

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

Color values

HEX#7E2158
RGBrgb(126, 33, 88)
HSLhsl(325, 58%, 31%)
HSVhsv(325, 74%, 49%)
CMYKcmyk(0%, 73.8%, 30.2%, 50.6%)
CIE-LABlab(29.98, 44.79, -10.53)
CIE-LCHlch(29.98, 46.01, 346.78°)
OKLaboklab(41.48% 0.1364 -0.0276)
OKLCHoklch(41.48% 0.139 348.5)
XYZxyz(10.9100, 6.2291, 9.8584)
Luminance0.0623 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2158 #217E47
analogous
#75217E #7E2158 #7E2129
triadic
#7E2158 #587E21 #21587E
tetradic
#7E2158 #7E7521 #217E47 #21297E
square
#7E2158 #7E7521 #217E47 #21297E
split-complementary
#7E2158 #297E21 #217E75
monochromatic
#1D0814 #4E1436 #7E2158 #AE2E7A #D04A99

Accessibility & contrast

On white

9.35
#7E2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2158
9.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2158#FFFFFF#000000##FFFFFF
##7E21581.009.352.259.35
#FFFFFF9.351.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3C5A
Deuteranopia (green-blind)
#494D56
Tritanopia (blue-blind)
#871D39
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2158;
/* rgb */ color: rgb(126, 33, 88);
/* oklch */ color: oklch(41.5% 0.139 348.5);
Tailwind
colors: {
  custom: {
    50: '#a76587',
    500: '#7e2158',
    950: '#000000',
  },
}
SCSS
$custom: #7e2158;
$custom-light: #a76587;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2158",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 324.516,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.4148,
    "c": 0.13916,
    "h": 348.5
  },
  "luminance": 0.06228
}

Semantic roles & 50–950 ramp

primary
#7E2158
secondary
#4AB174
accent
#E28646
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E2158

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

Preview Lab → · Contrast checker → · Palette generator →

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