#7E254F#7E254F

#7E254F is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.5% C 0.129 H 355.2°. Best body text is #FFFFFF at 9.27:1 contrast (WCAG AA passes).

Color values

HEX#7E254F
RGBrgb(126, 37, 79)
HSLhsl(332, 55%, 32%)
HSVhsv(332, 71%, 49%)
CMYKcmyk(0%, 70.6%, 37.3%, 50.6%)
CIE-LABlab(30.22, 42.05, -4.27)
CIE-LCHlch(30.22, 42.26, 354.20°)
OKLaboklab(41.54% 0.1287 -0.0107)
OKLCHoklch(41.54% 0.129 355.2)
XYZxyz(10.6777, 6.3245, 8.0541)
Luminance0.0632 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E254F #257E54
analogous
#7E257C #7E254F #7E2725
triadic
#7E254F #4F7E25 #254F7E
tetradic
#7E254F #7C7E25 #257E54 #27257E
square
#7E254F #7C7E25 #257E54 #27257E
split-complementary
#7E254F #257E27 #257C7E
monochromatic
#1F0914 #4F1731 #7E254F #AD336D #CC518B

Accessibility & contrast

On white

9.27
#7E254F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.26
#7E254F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E254F
9.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E254F#FFFFFF#000000##FFFFFF
##7E254F1.009.272.269.27
#FFFFFF9.271.0021.001.00
#0000002.2621.001.0021.00
##FFFFFF9.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#353D50
Deuteranopia (green-blind)
#4D4D4D
Tritanopia (blue-blind)
#881D36
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e254f;
/* rgb */ color: rgb(126, 37, 79);
/* oklch */ color: oklch(41.5% 0.129 355.2);
Tailwind
colors: {
  custom: {
    50: '#a76780',
    500: '#7e254f',
    950: '#000000',
  },
}
SCSS
$custom: #7e254f;
$custom-light: #a76780;
$custom-dark: #000000;
JSON
{
  "hex": "#7e254f",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 79
  },
  "hsl": {
    "h": 331.685,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.41539,
    "c": 0.12915,
    "h": 355.2
  },
  "luminance": 0.06323
}

Semantic roles & 50–950 ramp

primary
#7E254F
secondary
#4FB082
accent
#DE984A
background
#FAF6F7
surface
#F4EBEE
border
#CEC6C9
text
#10060A
muted
#7F7A7C

Preview Lab

Preview with #7E254F

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

Preview Lab → · Contrast checker → · Palette generator →

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