#7E256E#7E256E

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

Color values

HEX#7E256E
RGBrgb(126, 37, 110)
HSLhsl(311, 55%, 32%)
HSVhsv(311, 71%, 49%)
CMYKcmyk(0%, 70.6%, 12.7%, 50.6%)
CIE-LABlab(31.55, 46.46, -22.32)
CIE-LCHlch(31.55, 51.54, 334.33°)
OKLaboklab(42.95% 0.1359 -0.0608)
OKLCHoklch(42.95% 0.149 335.9)
XYZxyz(12.0804, 6.8856, 15.4416)
Luminance0.0688 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E256E #257E35
analogous
#62257E #7E256E #7E2541
triadic
#7E256E #6E7E25 #256E7E
tetradic
#7E256E #7E6225 #257E35 #25417E
square
#7E256E #7E6225 #257E35 #25417E
split-complementary
#7E256E #417E25 #257E62
monochromatic
#1F091B #4F1745 #7E256E #AD3397 #CC51B6

Accessibility & contrast

On white

8.83
#7E256E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E256E
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E256E#FFFFFF#000000##FFFFFF
##7E256E1.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#264270
Deuteranopia (green-blind)
#444F6C
Tritanopia (blue-blind)
#852B46
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7e256e;
/* rgb */ color: rgb(126, 37, 110);
/* oklch */ color: oklch(42.9% 0.149 335.9);
Tailwind
colors: {
  custom: {
    50: '#a66898',
    500: '#7e256e',
    950: '#000000',
  },
}
SCSS
$custom: #7e256e;
$custom-light: #a66898;
$custom-dark: #000000;
JSON
{
  "hex": "#7e256e",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 110
  },
  "hsl": {
    "h": 310.787,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42945,
    "c": 0.14887,
    "h": 335.9
  },
  "luminance": 0.06885
}

Semantic roles & 50–950 ramp

primary
#7E256E
secondary
#4FB060
accent
#DE644A
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E256E

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

Preview Lab → · Contrast checker → · Palette generator →

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