#7E2262#7E2262

#7E2262 is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.0% C 0.144 H 342.5°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7E2262
RGBrgb(126, 34, 98)
HSLhsl(318, 58%, 31%)
HSVhsv(318, 73%, 49%)
CMYKcmyk(0%, 73%, 22.2%, 50.6%)
CIE-LABlab(30.55, 45.79, -16.16)
CIE-LCHlch(30.55, 48.56, 340.56°)
OKLaboklab(42.04% 0.1375 -0.0433)
OKLCHoklch(42.04% 0.144 342.5)
XYZxyz(11.3812, 6.4627, 12.2009)
Luminance0.0646 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2262 #227E3E
analogous
#6C227E #7E2262 #7E2234
triadic
#7E2262 #627E22 #22627E
tetradic
#7E2262 #7E6C22 #227E3E #22347E
square
#7E2262 #7E6C22 #227E3E #22347E
split-complementary
#7E2262 #347E22 #227E6C
monochromatic
#1E0817 #4E153D #7E2262 #AE2F87 #CF4CA7

Accessibility & contrast

On white

9.16
#7E2262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7E2262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2262
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2262#FFFFFF#000000##FFFFFF
##7E22621.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3E64
Deuteranopia (green-blind)
#474D60
Tritanopia (blue-blind)
#86233F
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e2262;
/* rgb */ color: rgb(126, 34, 98);
/* oklch */ color: oklch(42.0% 0.144 342.5);
Tailwind
colors: {
  custom: {
    50: '#a7668e',
    500: '#7e2262',
    950: '#000000',
  },
}
SCSS
$custom: #7e2262;
$custom-light: #a7668e;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2262",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 98
  },
  "hsl": {
    "h": 318.261,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42035,
    "c": 0.14415,
    "h": 342.5
  },
  "luminance": 0.06462
}

Semantic roles & 50–950 ramp

primary
#7E2262
secondary
#4BB16A
accent
#E17647
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E2262

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

Preview Lab → · Contrast checker → · Palette generator →

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