#7E256F#7E256F

#7E256F is a dark, vivid pink. Relative luminance 0.069; OKLCH L 43.0% C 0.150 H 335.4°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7E256F
RGBrgb(126, 37, 111)
HSLhsl(310, 55%, 32%)
HSVhsv(310, 71%, 49%)
CMYKcmyk(0%, 70.6%, 11.9%, 50.6%)
CIE-LABlab(31.60, 46.62, -22.88)
CIE-LCHlch(31.60, 51.93, 333.86°)
OKLaboklab(43% 0.136 -0.0624)
OKLCHoklch(43% 0.15 335.4)
XYZxyz(12.1351, 6.9075, 15.7300)
Luminance0.0691 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E256F #257E34
analogous
#61257E #7E256F #7E2543
triadic
#7E256F #6F7E25 #256F7E
tetradic
#7E256F #7E6125 #257E34 #25437E
square
#7E256F #7E6125 #257E34 #25437E
split-complementary
#7E256F #437E25 #257E61
monochromatic
#1F091C #4F1745 #7E256F #AD3399 #CC51B7

Accessibility & contrast

On white

8.82
#7E256F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7E256F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E256F
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E256F#FFFFFF#000000##FFFFFF
##7E256F1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#254271
Deuteranopia (green-blind)
#434F6D
Tritanopia (blue-blind)
#842B46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e256f;
/* rgb */ color: rgb(126, 37, 111);
/* oklch */ color: oklch(43.0% 0.150 335.4);
Tailwind
colors: {
  custom: {
    50: '#a66898',
    500: '#7e256f',
    950: '#000000',
  },
}
SCSS
$custom: #7e256f;
$custom-light: #a66898;
$custom-dark: #000000;
JSON
{
  "hex": "#7e256f",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 111
  },
  "hsl": {
    "h": 310.112,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42997,
    "c": 0.14964,
    "h": 335.4
  },
  "luminance": 0.06906
}

Semantic roles & 50–950 ramp

primary
#7E256F
secondary
#4FB05F
accent
#DE634A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E256F

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

Preview Lab → · Contrast checker → · Palette generator →

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