#7E2168#7E2168

#7E2168 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.2% C 0.150 H 339.0°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7E2168
RGBrgb(126, 33, 104)
HSLhsl(314, 58%, 31%)
HSVhsv(314, 74%, 49%)
CMYKcmyk(0%, 73.8%, 17.5%, 50.6%)
CIE-LABlab(30.70, 47.07, -19.80)
CIE-LCHlch(30.70, 51.06, 337.18°)
OKLaboklab(42.23% 0.1397 -0.0536)
OKLCHoklch(42.23% 0.15 339)
XYZxyz(11.6470, 6.5239, 13.7399)
Luminance0.0652 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2168 #217E37
analogous
#65217E #7E2168 #7E2139
triadic
#7E2168 #687E21 #21687E
tetradic
#7E2168 #7E6521 #217E37 #21397E
square
#7E2168 #7E6521 #217E37 #21397E
split-complementary
#7E2168 #397E21 #217E65
monochromatic
#1D0818 #4E1440 #7E2168 #AE2E90 #D04AB0

Accessibility & contrast

On white

9.11
#7E2168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7E2168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2168
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2168#FFFFFF#000000##FFFFFF
##7E21681.009.112.309.11
#FFFFFF9.111.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#263F6A
Deuteranopia (green-blind)
#444E66
Tritanopia (blue-blind)
#852541
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e2168;
/* rgb */ color: rgb(126, 33, 104);
/* oklch */ color: oklch(42.2% 0.150 339.0);
Tailwind
colors: {
  custom: {
    50: '#a76693',
    500: '#7e2168',
    950: '#000000',
  },
}
SCSS
$custom: #7e2168;
$custom-light: #a76693;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2168",
  "rgb": {
    "r": 126,
    "g": 33,
    "b": 104
  },
  "hsl": {
    "h": 314.194,
    "s": 58.491,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42233,
    "c": 0.14961,
    "h": 339
  },
  "luminance": 0.06523
}

Semantic roles & 50–950 ramp

primary
#7E2168
secondary
#4AB162
accent
#E26B46
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E2168

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

Preview Lab → · Contrast checker → · Palette generator →

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