#7E286F#7E286F

#7E286F is a dark, vivid pink. Relative luminance 0.071; OKLCH L 43.3% C 0.146 H 335.5°. Best body text is #FFFFFF at 8.68:1 contrast (WCAG AA passes).

Color values

HEX#7E286F
RGBrgb(126, 40, 111)
HSLhsl(310, 52%, 33%)
HSVhsv(310, 68%, 49%)
CMYKcmyk(0%, 68.3%, 11.9%, 50.6%)
CIE-LABlab(32.04, 45.38, -22.19)
CIE-LCHlch(32.04, 50.52, 333.94°)
OKLaboklab(43.32% 0.1324 -0.0604)
OKLCHoklch(43.32% 0.146 335.5)
XYZxyz(12.2324, 7.1019, 15.7624)
Luminance0.0710 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E286F #287E37
analogous
#62287E #7E286F #7E2844
triadic
#7E286F #6F7E28 #286F7E
tetradic
#7E286F #7E6228 #287E37 #28447E
square
#7E286F #7E6228 #287E37 #28447E
split-complementary
#7E286F #447E28 #287E62
monochromatic
#210B1D #501946 #7E286F #AC3798 #CA57B6

Accessibility & contrast

On white

8.68
#7E286F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7E286F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E286F
8.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E286F#FFFFFF#000000##FFFFFF
##7E286F1.008.682.428.68
#FFFFFF8.681.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#284371
Deuteranopia (green-blind)
#45506D
Tritanopia (blue-blind)
#842E48
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e286f;
/* rgb */ color: rgb(126, 40, 111);
/* oklch */ color: oklch(43.3% 0.146 335.5);
Tailwind
colors: {
  custom: {
    50: '#a66998',
    500: '#7e286f',
    950: '#000000',
  },
}
SCSS
$custom: #7e286f;
$custom-light: #a66998;
$custom-dark: #000000;
JSON
{
  "hex": "#7e286f",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 111
  },
  "hsl": {
    "h": 310.465,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43319,
    "c": 0.14551,
    "h": 335.5
  },
  "luminance": 0.07101
}

Semantic roles & 50–950 ramp

primary
#7E286F
secondary
#53AF63
accent
#DB654D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E286F

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

Preview Lab → · Contrast checker → · Palette generator →

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