#7E1268#7E1268

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

Color values

HEX#7E1268
RGBrgb(126, 18, 104)
HSLhsl(312, 75%, 28%)
HSVhsv(312, 86%, 49%)
CMYKcmyk(0%, 85.7%, 17.5%, 50.6%)
CIE-LABlab(29.08, 51.69, -22.33)
CIE-LCHlch(29.08, 56.31, 336.64°)
OKLaboklab(41.07% 0.1537 -0.0606)
OKLCHoklch(41.07% 0.165 338.5)
XYZxyz(11.3195, 5.8689, 13.6307)
Luminance0.0587 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1268 #127E28
analogous
#5E127E #7E1268 #7E1232
triadic
#7E1268 #687E12 #12687E
tetradic
#7E1268 #7E5E12 #127E28 #12327E
square
#7E1268 #7E5E12 #127E28 #12327E
split-complementary
#7E1268 #327E12 #127E5E
monochromatic
#1B0416 #480A3C #7E1268 #B41A94 #E12ABB

Accessibility & contrast

On white

9.66
#7E1268 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1268
9.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1268#FFFFFF#000000##FFFFFF
##7E12681.009.662.179.66
#FFFFFF9.661.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#193A6A
Deuteranopia (green-blind)
#3F4A66
Tritanopia (blue-blind)
#86193D
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e1268;
/* rgb */ color: rgb(126, 18, 104);
/* oklch */ color: oklch(41.1% 0.165 338.5);
Tailwind
colors: {
  custom: {
    50: '#a76093',
    500: '#7e1268',
    950: '#000000',
  },
}
SCSS
$custom: #7e1268;
$custom-light: #a76093;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1268",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 104
  },
  "hsl": {
    "h": 312.222,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41066,
    "c": 0.16519,
    "h": 338.5
  },
  "luminance": 0.05868
}

Semantic roles & 50–950 ramp

primary
#7E1268
secondary
#38B451
accent
#F25C36
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E1268

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

Preview Lab → · Contrast checker → · Palette generator →

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