#7E256A#7E256A

#7E256A is a dark, vivid pink. Relative luminance 0.068; OKLCH L 42.7% C 0.146 H 338.1°. Best body text is #FFFFFF at 8.90:1 contrast (WCAG AA passes).

Color values

HEX#7E256A
RGBrgb(126, 37, 106)
HSLhsl(313, 55%, 32%)
HSVhsv(313, 71%, 49%)
CMYKcmyk(0%, 70.6%, 15.9%, 50.6%)
CIE-LABlab(31.35, 45.82, -20.08)
CIE-LCHlch(31.35, 50.02, 336.34°)
OKLaboklab(42.74% 0.1353 -0.0544)
OKLCHoklch(42.74% 0.146 338.1)
XYZxyz(11.8675, 6.8004, 14.3205)
Luminance0.0680 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E256A #257E39
analogous
#66257E #7E256A #7E253E
triadic
#7E256A #6A7E25 #256A7E
tetradic
#7E256A #7E6625 #257E39 #253E7E
square
#7E256A #7E6625 #257E39 #253E7E
split-complementary
#7E256A #3E7E25 #257E66
monochromatic
#1F091A #4F1742 #7E256A #AD3392 #CC51B0

Accessibility & contrast

On white

8.90
#7E256A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7E256A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E256A
8.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E256A#FFFFFF#000000##FFFFFF
##7E256A1.008.902.368.90
#FFFFFF8.901.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#29416C
Deuteranopia (green-blind)
#454F68
Tritanopia (blue-blind)
#852944
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e256a;
/* rgb */ color: rgb(126, 37, 106);
/* oklch */ color: oklch(42.7% 0.146 338.1);
Tailwind
colors: {
  custom: {
    50: '#a66795',
    500: '#7e256a',
    950: '#000000',
  },
}
SCSS
$custom: #7e256a;
$custom-light: #a66795;
$custom-dark: #000000;
JSON
{
  "hex": "#7e256a",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 106
  },
  "hsl": {
    "h": 313.483,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42737,
    "c": 0.14584,
    "h": 338.1
  },
  "luminance": 0.06799
}

Semantic roles & 50–950 ramp

primary
#7E256A
secondary
#4FB065
accent
#DE6B4A
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E256A

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

Preview Lab → · Contrast checker → · Palette generator →

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