#7E1267#7E1267

#7E1267 is a dark, vivid pink. Relative luminance 0.058; OKLCH L 41.0% C 0.165 H 339.0°. Best body text is #FFFFFF at 9.68:1 contrast (WCAG AA passes).

Color values

HEX#7E1267
RGBrgb(126, 18, 103)
HSLhsl(313, 75%, 28%)
HSVhsv(313, 86%, 49%)
CMYKcmyk(0%, 85.7%, 18.3%, 50.6%)
CIE-LABlab(29.03, 51.55, -21.76)
CIE-LCHlch(29.03, 55.95, 337.11°)
OKLaboklab(41.01% 0.1536 -0.059)
OKLCHoklch(41.01% 0.165 339)
XYZxyz(11.2690, 5.8487, 13.3648)
Luminance0.0585 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E1267 #127E29
analogous
#5F127E #7E1267 #7E1231
triadic
#7E1267 #677E12 #12677E
tetradic
#7E1267 #7E5F12 #127E29 #12317E
square
#7E1267 #7E5F12 #127E29 #12317E
split-complementary
#7E1267 #317E12 #127E5F
monochromatic
#1B0416 #480A3B #7E1267 #B41A93 #E12ABA

Accessibility & contrast

On white

9.68
#7E1267 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E1267
9.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E1267#FFFFFF#000000##FFFFFF
##7E12671.009.682.179.68
#FFFFFF9.681.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A3A69
Deuteranopia (green-blind)
#404A65
Tritanopia (blue-blind)
#86183D
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7e1267;
/* rgb */ color: rgb(126, 18, 103);
/* oklch */ color: oklch(41.0% 0.165 339.0);
Tailwind
colors: {
  custom: {
    50: '#a76092',
    500: '#7e1267',
    950: '#000000',
  },
}
SCSS
$custom: #7e1267;
$custom-light: #a76092;
$custom-dark: #000000;
JSON
{
  "hex": "#7e1267",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 103
  },
  "hsl": {
    "h": 312.778,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41012,
    "c": 0.16452,
    "h": 339
  },
  "luminance": 0.05848
}

Semantic roles & 50–950 ramp

primary
#7E1267
secondary
#38B452
accent
#F25E36
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E1267

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

Preview Lab → · Contrast checker → · Palette generator →

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