#7E286B#7E286B

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

Color values

HEX#7E286B
RGBrgb(126, 40, 107)
HSLhsl(313, 52%, 33%)
HSVhsv(313, 68%, 49%)
CMYKcmyk(0%, 68.3%, 15.1%, 50.6%)
CIE-LABlab(31.84, 44.73, -19.95)
CIE-LCHlch(31.84, 48.98, 335.97°)
OKLaboklab(43.11% 0.1318 -0.054)
OKLCHoklch(43.11% 0.142 337.7)
XYZxyz(12.0170, 7.0158, 14.6284)
Luminance0.0702 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E286B #287E3B
analogous
#66287E #7E286B #7E2840
triadic
#7E286B #6B7E28 #286B7E
tetradic
#7E286B #7E6628 #287E3B #28407E
square
#7E286B #7E6628 #287E3B #28407E
split-complementary
#7E286B #407E28 #287E66
monochromatic
#210B1C #501944 #7E286B #AC3792 #CA57B0

Accessibility & contrast

On white

8.74
#7E286B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7E286B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E286B
8.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E286B#FFFFFF#000000##FFFFFF
##7E286B1.008.742.408.74
#FFFFFF8.741.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2B426D
Deuteranopia (green-blind)
#465069
Tritanopia (blue-blind)
#852C45
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7e286b;
/* rgb */ color: rgb(126, 40, 107);
/* oklch */ color: oklch(43.1% 0.142 337.7);
Tailwind
colors: {
  custom: {
    50: '#a66995',
    500: '#7e286b',
    950: '#000000',
  },
}
SCSS
$custom: #7e286b;
$custom-light: #a66995;
$custom-dark: #000000;
JSON
{
  "hex": "#7e286b",
  "rgb": {
    "r": 126,
    "g": 40,
    "b": 107
  },
  "hsl": {
    "h": 313.256,
    "s": 51.807,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43113,
    "c": 0.14241,
    "h": 337.7
  },
  "luminance": 0.07015
}

Semantic roles & 50–950 ramp

primary
#7E286B
secondary
#53AF67
accent
#DB6C4D
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10070D
muted
#7F7A7E

Preview Lab

Preview with #7E286B

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

Preview Lab → · Contrast checker → · Palette generator →

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