#7E1566#7E1566

#7E1566 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 41.1% C 0.161 H 339.6°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#7E1566
RGBrgb(126, 21, 102)
HSLhsl(314, 71%, 29%)
HSVhsv(314, 83%, 49%)
CMYKcmyk(0%, 83.3%, 19%, 50.6%)
CIE-LABlab(29.24, 50.64, -20.78)
CIE-LCHlch(29.24, 54.74, 337.69°)
OKLaboklab(41.15% 0.1511 -0.0563)
OKLCHoklch(41.15% 0.161 339.6)
XYZxyz(11.2710, 5.9324, 13.1193)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1566 #157E2D
analogous
#62157E #7E1566 #7E1532
triadic
#7E1566 #667E15 #15667E
tetradic
#7E1566 #7E6215 #157E2D #15327E
square
#7E1566 #7E6215 #157E2D #15327E
split-complementary
#7E1566 #327E15 #157E62
monochromatic
#1A0415 #4A0C3C #7E1566 #B21E90 #DD31B5

Accessibility & contrast

On white

9.61
#7E1566 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1566
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1566#FFFFFF#000000##FFFFFF
##7E15661.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D3A68
Deuteranopia (green-blind)
#414B64
Tritanopia (blue-blind)
#861A3D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1566;
/* rgb */ color: rgb(126, 21, 102);
/* oklch */ color: oklch(41.1% 0.161 339.6);
Tailwind
colors: {
  custom: {
    50: '#a76192',
    500: '#7e1566',
    950: '#000000',
  },
}
SCSS
$custom: #7e1566;
$custom-light: #a76192;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1566",
  "rgb": {
    "r": 126,
    "g": 21,
    "b": 102
  },
  "hsl": {
    "h": 313.714,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.41149,
    "c": 0.16126,
    "h": 339.6
  },
  "luminance": 0.05931
}

Semantic roles & 50–950 ramp

primary
#7E1566
secondary
#3CB357
accent
#EE633A
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060D
muted
#7F7A7D

Preview Lab

Preview with #7E1566

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

Preview Lab → · Contrast checker → · Palette generator →

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