#7E255C#7E255C

#7E255C is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.1% C 0.136 H 346.5°. Best body text is #FFFFFF at 9.11:1 contrast (WCAG AA passes).

Color values

HEX#7E255C
RGBrgb(126, 37, 92)
HSLhsl(323, 55%, 32%)
HSVhsv(323, 71%, 49%)
CMYKcmyk(0%, 70.6%, 27%, 50.6%)
CIE-LABlab(30.72, 43.74, -12.02)
CIE-LCHlch(30.72, 45.36, 344.64°)
OKLaboklab(42.07% 0.1325 -0.0318)
OKLCHoklch(42.07% 0.136 346.5)
XYZxyz(11.1980, 6.5326, 10.7943)
Luminance0.0653 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E255C #257E47
analogous
#74257E #7E255C #7E2530
triadic
#7E255C #5C7E25 #255C7E
tetradic
#7E255C #7E7425 #257E47 #25307E
square
#7E255C #7E7425 #257E47 #25307E
split-complementary
#7E255C #307E25 #257E74
monochromatic
#1F0917 #4F1739 #7E255C #AD337F #CC519D

Accessibility & contrast

On white

9.11
#7E255C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7E255C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E255C
9.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E255C#FFFFFF#000000##FFFFFF
##7E255C1.009.112.319.11
#FFFFFF9.111.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303F5E
Deuteranopia (green-blind)
#4A4E5A
Tritanopia (blue-blind)
#87233D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e255c;
/* rgb */ color: rgb(126, 37, 92);
/* oklch */ color: oklch(42.1% 0.136 346.5);
Tailwind
colors: {
  custom: {
    50: '#a7678a',
    500: '#7e255c',
    950: '#000000',
  },
}
SCSS
$custom: #7e255c;
$custom-light: #a7678a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e255c",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 92
  },
  "hsl": {
    "h": 322.921,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42072,
    "c": 0.13623,
    "h": 346.5
  },
  "luminance": 0.06531
}

Semantic roles & 50–950 ramp

primary
#7E255C
secondary
#4FB074
accent
#DE824A
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E255C

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

Preview Lab → · Contrast checker → · Palette generator →

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