#7E266C#7E266C

#7E266C is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.9% C 0.146 H 337.0°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7E266C
RGBrgb(126, 38, 108)
HSLhsl(312, 54%, 32%)
HSVhsv(312, 70%, 49%)
CMYKcmyk(0%, 69.8%, 14.3%, 50.6%)
CIE-LABlab(31.59, 45.73, -20.98)
CIE-LCHlch(31.59, 50.31, 335.36°)
OKLaboklab(42.95% 0.1344 -0.0569)
OKLCHoklch(42.95% 0.146 337)
XYZxyz(12.0043, 6.9056, 14.8851)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E266C #267E38
analogous
#64267E #7E266C #7E2640
triadic
#7E266C #6C7E26 #266C7E
tetradic
#7E266C #7E6426 #267E38 #26407E
square
#7E266C #7E6426 #267E38 #26407E
split-complementary
#7E266C #407E26 #267E64
monochromatic
#200A1B #4F1844 #7E266C #AD3494 #CB53B3

Accessibility & contrast

On white

8.82
#7E266C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E266C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E266C
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E266C#FFFFFF#000000##FFFFFF
##7E266C1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#28426E
Deuteranopia (green-blind)
#454F6A
Tritanopia (blue-blind)
#852B45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e266c;
/* rgb */ color: rgb(126, 38, 108);
/* oklch */ color: oklch(42.9% 0.146 337.0);
Tailwind
colors: {
  custom: {
    50: '#a66896',
    500: '#7e266c',
    950: '#000000',
  },
}
SCSS
$custom: #7e266c;
$custom-light: #a66896;
$custom-dark: #000000;
JSON
{
  "hex": "#7e266c",
  "rgb": {
    "r": 126,
    "g": 38,
    "b": 108
  },
  "hsl": {
    "h": 312.273,
    "s": 53.659,
    "l": 32.157
  },
  "oklch": {
    "l": 0.42946,
    "c": 0.14598,
    "h": 337
  },
  "luminance": 0.06905
}

Semantic roles & 50–950 ramp

primary
#7E266C
secondary
#50B064
accent
#DD694B
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E266C

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

Preview Lab → · Contrast checker → · Palette generator →

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