#7E1958#7E1958

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

Color values

HEX#7E1958
RGBrgb(126, 25, 88)
HSLhsl(323, 67%, 30%)
HSVhsv(323, 80%, 49%)
CMYKcmyk(0%, 80.2%, 30.2%, 50.6%)
CIE-LABlab(29.00, 47.58, -12.03)
CIE-LCHlch(29.00, 49.08, 345.81°)
OKLaboklab(40.76% 0.1451 -0.0317)
OKLCHoklch(40.76% 0.149 347.7)
XYZxyz(10.7138, 5.8367, 9.7930)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1958 #197E3F
analogous
#71197E #7E1958 #7E1926
triadic
#7E1958 #587E19 #19587E
tetradic
#7E1958 #7E7119 #197E3F #19267E
square
#7E1958 #7E7119 #197E3F #19267E
split-complementary
#7E1958 #267E19 #197E71
monochromatic
#1A0512 #4B0F34 #7E1958 #B1237C #D83A9C

Accessibility & contrast

On white

9.69
#7E1958 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7E1958 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1958
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1958#FFFFFF#000000##FFFFFF
##7E19581.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29395A
Deuteranopia (green-blind)
#474B56
Tritanopia (blue-blind)
#871436
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1958;
/* rgb */ color: rgb(126, 25, 88);
/* oklch */ color: oklch(40.8% 0.149 347.7);
Tailwind
colors: {
  custom: {
    50: '#a76287',
    500: '#7e1958',
    950: '#000000',
  },
}
SCSS
$custom: #7e1958;
$custom-light: #a76287;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1958",
  "rgb": {
    "r": 126,
    "g": 25,
    "b": 88
  },
  "hsl": {
    "h": 322.574,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.4076,
    "c": 0.14851,
    "h": 347.7
  },
  "luminance": 0.05835
}

Semantic roles & 50–950 ramp

primary
#7E1958
secondary
#41B26B
accent
#EA7F3E
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E1958

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

Preview Lab → · Contrast checker → · Palette generator →

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