#7E2157#7E2157

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

Color values

HEX#7E2157
RGBrgb(126, 33, 87)
HSLhsl(325, 58%, 31%)
HSVhsv(325, 74%, 49%)
CMYKcmyk(0%, 73.8%, 31%, 50.6%)
CIE-LABlab(29.94, 44.66, -9.93)
CIE-LCHlch(29.94, 45.75, 347.46°)
OKLaboklab(41.44% 0.1361 -0.026)
OKLCHoklch(41.44% 0.139 349.2)
XYZxyz(10.8689, 6.2127, 9.6418)
Luminance0.0621 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2157 #217E48
analogous
#76217E #7E2157 #7E2128
triadic
#7E2157 #577E21 #21577E
tetradic
#7E2157 #7E7621 #217E48 #21287E
square
#7E2157 #7E7621 #217E48 #21287E
split-complementary
#7E2157 #287E21 #217E76
monochromatic
#1D0814 #4E1436 #7E2157 #AE2E78 #D04A97

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E2157#FFFFFF#000000##FFFFFF
##7E21571.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)
#2F3C58
Deuteranopia (green-blind)
#4A4C55
Tritanopia (blue-blind)
#871C39
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e2157;
/* rgb */ color: rgb(126, 33, 87);
/* oklch */ color: oklch(41.4% 0.139 349.2);
Tailwind
colors: {
  custom: {
    50: '#a76586',
    500: '#7e2157',
    950: '#000000',
  },
}
SCSS
$custom: #7e2157;
$custom-light: #a76586;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2157",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 325.161,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.41437,
    "c": 0.13859,
    "h": 349.2
  },
  "luminance": 0.06211
}

Semantic roles & 50–950 ramp

primary
#7E2157
secondary
#4AB175
accent
#E28746
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E2157

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

Preview Lab → · Contrast checker → · Palette generator →

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