#7E1568#7E1568

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

Color values

HEX#7E1568
RGBrgb(126, 21, 104)
HSLhsl(313, 71%, 29%)
HSVhsv(313, 83%, 49%)
CMYKcmyk(0%, 83.3%, 17.5%, 50.6%)
CIE-LABlab(29.34, 50.93, -21.91)
CIE-LCHlch(29.34, 55.44, 336.72°)
OKLaboklab(41.26% 0.1514 -0.0595)
OKLCHoklch(41.26% 0.163 338.5)
XYZxyz(11.3713, 5.9726, 13.6480)
Luminance0.0597 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1568 #157E2B
analogous
#60157E #7E1568 #7E1534
triadic
#7E1568 #687E15 #15687E
tetradic
#7E1568 #7E6015 #157E2B #15347E
square
#7E1568 #7E6015 #157E2B #15347E
split-complementary
#7E1568 #347E15 #157E60
monochromatic
#1A0416 #4A0C3D #7E1568 #B21E93 #DD31B9

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E1568#FFFFFF#000000##FFFFFF
##7E15681.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)
#1C3B6A
Deuteranopia (green-blind)
#404B66
Tritanopia (blue-blind)
#861B3E
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1568;
/* rgb */ color: rgb(126, 21, 104);
/* oklch */ color: oklch(41.3% 0.163 338.5);
Tailwind
colors: {
  custom: {
    50: '#a76193',
    500: '#7e1568',
    950: '#000000',
  },
}
SCSS
$custom: #7e1568;
$custom-light: #a76193;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1568",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 104
  },
  "hsl": {
    "h": 312.571,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41256,
    "c": 0.16262,
    "h": 338.5
  },
  "luminance": 0.05971
}

Semantic roles & 50–950 ramp

primary
#7E1568
secondary
#3CB355
accent
#EE5F3A
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E1568

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

Preview Lab → · Contrast checker → · Palette generator →

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