#7E256D#7E256D

#7E256D is a dark, vivid pink. Relative luminance 0.069; OKLCH L 42.9% C 0.148 H 336.4°. Best body text is #FFFFFF at 8.85:1 contrast (WCAG AA passes).

Color values

HEX#7E256D
RGBrgb(126, 37, 109)
HSLhsl(311, 55%, 32%)
HSVhsv(311, 71%, 49%)
CMYKcmyk(0%, 70.6%, 13.5%, 50.6%)
CIE-LABlab(31.50, 46.30, -21.76)
CIE-LCHlch(31.50, 51.16, 334.82°)
OKLaboklab(42.89% 0.1358 -0.0592)
OKLCHoklch(42.89% 0.148 336.4)
XYZxyz(12.0262, 6.8639, 15.1565)
Luminance0.0686 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E256D #257E36
analogous
#63257E #7E256D #7E2541
triadic
#7E256D #6D7E25 #256D7E
tetradic
#7E256D #7E6325 #257E36 #25417E
square
#7E256D #7E6325 #257E36 #25417E
split-complementary
#7E256D #417E25 #257E63
monochromatic
#1F091B #4F1744 #7E256D #AD3396 #CC51B5

Accessibility & contrast

On white

8.85
#7E256D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7E256D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E256D
8.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E256D#FFFFFF#000000##FFFFFF
##7E256D1.008.852.378.85
#FFFFFF8.851.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#27416F
Deuteranopia (green-blind)
#444F6B
Tritanopia (blue-blind)
#852A45
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e256d;
/* rgb */ color: rgb(126, 37, 109);
/* oklch */ color: oklch(42.9% 0.148 336.4);
Tailwind
colors: {
  custom: {
    50: '#a66897',
    500: '#7e256d',
    950: '#000000',
  },
}
SCSS
$custom: #7e256d;
$custom-light: #a66897;
$custom-dark: #000000;
JSON
{
  "hex": "#7e256d",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 109
  },
  "hsl": {
    "h": 311.461,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42892,
    "c": 0.1481,
    "h": 336.4
  },
  "luminance": 0.06863
}

Semantic roles & 50–950 ramp

primary
#7E256D
secondary
#4FB061
accent
#DE664A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E256D

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

Preview Lab → · Contrast checker → · Palette generator →

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