#7E1857#7E1857

#7E1857 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 40.6% C 0.149 H 348.2°. Best body text is #FFFFFF at 9.74:1 contrast (WCAG AA passes).

Color values

HEX#7E1857
RGBrgb(126, 24, 87)
HSLhsl(323, 68%, 29%)
HSVhsv(323, 81%, 49%)
CMYKcmyk(0%, 81%, 31%, 50.6%)
CIE-LABlab(28.85, 47.76, -11.60)
CIE-LCHlch(28.85, 49.15, 346.35°)
OKLaboklab(40.64% 0.1458 -0.0305)
OKLCHoklch(40.64% 0.149 348.2)
XYZxyz(10.6517, 5.7782, 9.5694)
Luminance0.0578 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1857 #187E3F
analogous
#72187E #7E1857 #7E1824
triadic
#7E1857 #577E18 #18577E
tetradic
#7E1857 #7E7218 #187E3F #18247E
square
#7E1857 #7E7218 #187E3F #18247E
split-complementary
#7E1857 #247E18 #187E72
monochromatic
#1A0512 #4B0E34 #7E1857 #B1227A #D9379B

Accessibility & contrast

On white

9.74
#7E1857 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.16
#7E1857 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1857
9.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1857#FFFFFF#000000##FFFFFF
##7E18571.009.742.169.74
#FFFFFF9.741.0021.001.00
#0000002.1621.001.0021.00
##FFFFFF9.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#293959
Deuteranopia (green-blind)
#474A55
Tritanopia (blue-blind)
#871236
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1857;
/* rgb */ color: rgb(126, 24, 87);
/* oklch */ color: oklch(40.6% 0.149 348.2);
Tailwind
colors: {
  custom: {
    50: '#a76186',
    500: '#7e1857',
    950: '#000000',
  },
}
SCSS
$custom: #7e1857;
$custom-light: #a76186;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1857",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 87
  },
  "hsl": {
    "h": 322.941,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.40637,
    "c": 0.14898,
    "h": 348.2
  },
  "luminance": 0.05777
}

Semantic roles & 50–950 ramp

primary
#7E1857
secondary
#3FB26B
accent
#EB7F3D
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E1857

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

Preview Lab → · Contrast checker → · Palette generator →

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