#7E1862#7E1862

#7E1862 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.2% C 0.156 H 341.9°. Best body text is #FFFFFF at 9.57:1 contrast (WCAG AA passes).

Color values

HEX#7E1862
RGBrgb(126, 24, 98)
HSLhsl(316, 68%, 29%)
HSVhsv(316, 81%, 49%)
CMYKcmyk(0%, 81%, 22.2%, 50.6%)
CIE-LABlab(29.34, 49.22, -18.03)
CIE-LCHlch(29.34, 52.42, 339.88°)
OKLaboklab(41.16% 0.148 -0.0485)
OKLCHoklch(41.16% 0.156 341.9)
XYZxyz(11.1358, 5.9719, 12.1191)
Luminance0.0597 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1862 #187E34
analogous
#67187E #7E1862 #7E182F
triadic
#7E1862 #627E18 #18627E
tetradic
#7E1862 #7E6718 #187E34 #182F7E
square
#7E1862 #7E6718 #187E34 #182F7E
split-complementary
#7E1862 #2F7E18 #187E67
monochromatic
#1A0514 #4B0E3A #7E1862 #B1228A #D937AD

Accessibility & contrast

On white

9.57
#7E1862 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7E1862 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1862
9.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1862#FFFFFF#000000##FFFFFF
##7E18621.009.572.199.57
#FFFFFF9.571.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223B64
Deuteranopia (green-blind)
#434B60
Tritanopia (blue-blind)
#861A3B
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1862;
/* rgb */ color: rgb(126, 24, 98);
/* oklch */ color: oklch(41.2% 0.156 341.9);
Tailwind
colors: {
  custom: {
    50: '#a7628f',
    500: '#7e1862',
    950: '#000000',
  },
}
SCSS
$custom: #7e1862;
$custom-light: #a7628f;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1862",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 98
  },
  "hsl": {
    "h": 316.471,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41158,
    "c": 0.15572,
    "h": 341.9
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#7E1862
secondary
#3FB25F
accent
#EB6D3D
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E1862

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

Preview Lab → · Contrast checker → · Palette generator →

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