#7E126B#7E126B

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

Color values

HEX#7E126B
RGBrgb(126, 18, 107)
HSLhsl(311, 75%, 28%)
HSVhsv(311, 86%, 49%)
CMYKcmyk(0%, 85.7%, 15.1%, 50.6%)
CIE-LABlab(29.24, 52.13, -24.01)
CIE-LCHlch(29.24, 57.39, 335.27°)
OKLaboklab(41.23% 0.1539 -0.0655)
OKLCHoklch(41.23% 0.167 337)
XYZxyz(11.4746, 5.9309, 14.4475)
Luminance0.0593 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E126B #127E25
analogous
#5B127E #7E126B #7E1235
triadic
#7E126B #6B7E12 #126B7E
tetradic
#7E126B #7E5B12 #127E25 #12357E
square
#7E126B #7E5B12 #127E25 #12357E
split-complementary
#7E126B #357E12 #127E5B
monochromatic
#1B0417 #480A3E #7E126B #B41A98 #E12AC0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E126B#FFFFFF#000000##FFFFFF
##7E126B1.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)
#163B6D
Deuteranopia (green-blind)
#3E4B69
Tritanopia (blue-blind)
#851B3F
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7e126b;
/* rgb */ color: rgb(126, 18, 107);
/* oklch */ color: oklch(41.2% 0.167 337.0);
Tailwind
colors: {
  custom: {
    50: '#a76095',
    500: '#7e126b',
    950: '#000000',
  },
}
SCSS
$custom: #7e126b;
$custom-light: #a76095;
$custom-dark: #000000;
JSON
{
  "hex": "#7e126b",
  "rgb": {
    "r": 126,
    "g": 18,
    "b": 107
  },
  "hsl": {
    "h": 310.556,
    "s": 75,
    "l": 28.235
  },
  "oklch": {
    "l": 0.41231,
    "c": 0.16724,
    "h": 337
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#7E126B
secondary
#38B44E
accent
#F25736
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10050D
muted
#7F7A7E

Preview Lab

Preview with #7E126B

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

Preview Lab → · Contrast checker → · Palette generator →

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