#7E1868#7E1868

#7E1868 is a dark, vivid pink. Relative luminance 0.061; OKLCH L 41.5% C 0.160 H 338.6°. Best body text is #FFFFFF at 9.47:1 contrast (WCAG AA passes).

Color values

HEX#7E1868
RGBrgb(126, 24, 104)
HSLhsl(313, 68%, 29%)
HSVhsv(313, 81%, 49%)
CMYKcmyk(0%, 81%, 17.5%, 50.6%)
CIE-LABlab(29.64, 50.08, -21.45)
CIE-LCHlch(29.64, 54.49, 336.81°)
OKLaboklab(41.47% 0.1488 -0.0582)
OKLCHoklch(41.47% 0.16 338.6)
XYZxyz(11.4298, 6.0895, 13.6675)
Luminance0.0609 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1868 #187E2E
analogous
#61187E #7E1868 #7E1835
triadic
#7E1868 #687E18 #18687E
tetradic
#7E1868 #7E6118 #187E2E #18357E
square
#7E1868 #7E6118 #187E2E #18357E
split-complementary
#7E1868 #357E18 #187E61
monochromatic
#1A0515 #4B0E3E #7E1868 #B12292 #D937B6

Accessibility & contrast

On white

9.47
#7E1868 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.22
#7E1868 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E1868
9.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1868#FFFFFF#000000##FFFFFF
##7E18681.009.472.229.47
#FFFFFF9.471.0021.001.00
#0000002.2221.001.0021.00
##FFFFFF9.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E3C6A
Deuteranopia (green-blind)
#414B66
Tritanopia (blue-blind)
#861D3F
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7e1868;
/* rgb */ color: rgb(126, 24, 104);
/* oklch */ color: oklch(41.5% 0.160 338.6);
Tailwind
colors: {
  custom: {
    50: '#a76293',
    500: '#7e1868',
    950: '#000000',
  },
}
SCSS
$custom: #7e1868;
$custom-light: #a76293;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1868",
  "rgb": {
    "r": 126,
    "g": 24,
    "b": 104
  },
  "hsl": {
    "h": 312.941,
    "s": 68,
    "l": 29.412
  },
  "oklch": {
    "l": 0.41467,
    "c": 0.15977,
    "h": 338.6
  },
  "luminance": 0.06088
}

Semantic roles & 50–950 ramp

primary
#7E1868
secondary
#3FB258
accent
#EB623D
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1868

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

Preview Lab → · Contrast checker → · Palette generator →

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