#7E276C#7E276C

#7E276C is a dark, vivid pink. Relative luminance 0.070; OKLCH L 43.1% C 0.145 H 337.1°. Best body text is #FFFFFF at 8.77:1 contrast (WCAG AA passes).

Color values

HEX#7E276C
RGBrgb(126, 39, 108)
HSLhsl(312, 53%, 32%)
HSVhsv(312, 69%, 49%)
CMYKcmyk(0%, 69%, 14.3%, 50.6%)
CIE-LABlab(31.74, 45.31, -20.74)
CIE-LCHlch(31.74, 49.84, 335.40°)
OKLaboklab(43.05% 0.1332 -0.0563)
OKLCHoklch(43.05% 0.145 337.1)
XYZxyz(12.0367, 6.9704, 14.8959)
Luminance0.0697 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E276C #277E39
analogous
#65277E #7E276C #7E2740
triadic
#7E276C #6C7E27 #276C7E
tetradic
#7E276C #7E6527 #277E39 #27407E
square
#7E276C #7E6527 #277E39 #27407E
split-complementary
#7E276C #407E27 #277E65
monochromatic
#210A1C #4F1944 #7E276C #AD3594 #CA55B2

Accessibility & contrast

On white

8.77
#7E276C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7E276C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E276C
8.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E276C#FFFFFF#000000##FFFFFF
##7E276C1.008.772.398.77
#FFFFFF8.771.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29426E
Deuteranopia (green-blind)
#454F6A
Tritanopia (blue-blind)
#852B46
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e276c;
/* rgb */ color: rgb(126, 39, 108);
/* oklch */ color: oklch(43.1% 0.145 337.1);
Tailwind
colors: {
  custom: {
    50: '#a66896',
    500: '#7e276c',
    950: '#000000',
  },
}
SCSS
$custom: #7e276c;
$custom-light: #a66896;
$custom-dark: #000000;
JSON
{
  "hex": "#7e276c",
  "rgb": {
    "r": 126,
    "g": 39,
    "b": 108
  },
  "hsl": {
    "h": 312.414,
    "s": 52.727,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43054,
    "c": 0.14459,
    "h": 337.1
  },
  "luminance": 0.06969
}

Semantic roles & 50–950 ramp

primary
#7E276C
secondary
#52AF65
accent
#DC6A4C
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E276C

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

Preview Lab → · Contrast checker → · Palette generator →

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