#7E286D#7E286D

#7E286D is a dark, vivid pink. Relative luminance 0.071; OKLCH L 43.2% C 0.144 H 336.6°. Best body text is #FFFFFF at 8.71:1 contrast (WCAG AA passes).

Color values

HEX#7E286D
RGBrgb(126, 40, 109)
HSLhsl(312, 52%, 33%)
HSVhsv(312, 68%, 49%)
CMYKcmyk(0%, 68.3%, 13.5%, 50.6%)
CIE-LABlab(31.94, 45.05, -21.07)
CIE-LCHlch(31.94, 49.74, 334.94°)
OKLaboklab(43.22% 0.1321 -0.0572)
OKLCHoklch(43.22% 0.144 336.6)
XYZxyz(12.1235, 7.0584, 15.1889)
Luminance0.0706 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E286D #287E39
analogous
#64287E #7E286D #7E2842
triadic
#7E286D #6D7E28 #286D7E
tetradic
#7E286D #7E6428 #287E39 #28427E
square
#7E286D #7E6428 #287E39 #28427E
split-complementary
#7E286D #427E28 #287E64
monochromatic
#210B1D #501945 #7E286D #AC3795 #CA57B3

Accessibility & contrast

On white

8.71
#7E286D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E286D
8.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E286D#FFFFFF#000000##FFFFFF
##7E286D1.008.712.418.71
#FFFFFF8.711.0021.001.00
#0000002.4121.001.0021.00
##FFFFFF8.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A436F
Deuteranopia (green-blind)
#45506B
Tritanopia (blue-blind)
#852D47
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e286d;
/* rgb */ color: rgb(126, 40, 109);
/* oklch */ color: oklch(43.2% 0.144 336.6);
Tailwind
colors: {
  custom: {
    50: '#a66997',
    500: '#7e286d',
    950: '#000000',
  },
}
SCSS
$custom: #7e286d;
$custom-light: #a66997;
$custom-dark: #000000;
JSON
{
  "hex": "#7e286d",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 109
  },
  "hsl": {
    "h": 311.86,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43215,
    "c": 0.14395,
    "h": 336.6
  },
  "luminance": 0.07057
}

Semantic roles & 50–950 ramp

primary
#7E286D
secondary
#53AF65
accent
#DB694D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E286D

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

Preview Lab → · Contrast checker → · Palette generator →

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