#7E286C#7E286C

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

Color values

HEX#7E286C
RGBrgb(126, 40, 108)
HSLhsl(313, 52%, 33%)
HSVhsv(313, 68%, 49%)
CMYKcmyk(0%, 68.3%, 14.3%, 50.6%)
CIE-LABlab(31.89, 44.89, -20.51)
CIE-LCHlch(31.89, 49.36, 335.45°)
OKLaboklab(43.16% 0.1319 -0.0556)
OKLCHoklch(43.16% 0.143 337.1)
XYZxyz(12.0699, 7.0370, 14.9070)
Luminance0.0704 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E286C #287E3A
analogous
#65287E #7E286C #7E2841
triadic
#7E286C #6C7E28 #286C7E
tetradic
#7E286C #7E6528 #287E3A #28417E
square
#7E286C #7E6528 #287E3A #28417E
split-complementary
#7E286C #417E28 #287E65
monochromatic
#210B1C #501944 #7E286C #AC3794 #CA57B2

Accessibility & contrast

On white

8.72
#7E286C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.41
#7E286C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E286C
8.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E286C#FFFFFF#000000##FFFFFF
##7E286C1.008.722.418.72
#FFFFFF8.721.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A436E
Deuteranopia (green-blind)
#46506A
Tritanopia (blue-blind)
#852C46
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e286c;
/* rgb */ color: rgb(126, 40, 108);
/* oklch */ color: oklch(43.2% 0.143 337.1);
Tailwind
colors: {
  custom: {
    50: '#a66996',
    500: '#7e286c',
    950: '#000000',
  },
}
SCSS
$custom: #7e286c;
$custom-light: #a66996;
$custom-dark: #000000;
JSON
{
  "hex": "#7e286c",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 108
  },
  "hsl": {
    "h": 312.558,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43164,
    "c": 0.14318,
    "h": 337.1
  },
  "luminance": 0.07036
}

Semantic roles & 50–950 ramp

primary
#7E286C
secondary
#53AF66
accent
#DB6A4D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E286C

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

Preview Lab → · Contrast checker → · Palette generator →

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