#7E255F#7E255F

#7E255F is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.2% C 0.138 H 344.6°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#7E255F
RGBrgb(126, 37, 95)
HSLhsl(321, 55%, 32%)
HSVhsv(321, 71%, 49%)
CMYKcmyk(0%, 70.6%, 24.6%, 50.6%)
CIE-LABlab(30.85, 44.17, -13.77)
CIE-LCHlch(30.85, 46.26, 342.69°)
OKLaboklab(42.21% 0.1332 -0.0366)
OKLCHoklch(42.21% 0.138 344.6)
XYZxyz(11.3317, 6.5861, 11.4987)
Luminance0.0659 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E255F #257E44
analogous
#71257E #7E255F #7E2533
triadic
#7E255F #5F7E25 #255F7E
tetradic
#7E255F #7E7125 #257E44 #25337E
square
#7E255F #7E7125 #257E44 #25337E
split-complementary
#7E255F #337E25 #257E71
monochromatic
#1F0918 #4F173B #7E255F #AD3383 #CC51A1

Accessibility & contrast

On white

9.06
#7E255F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7E255F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E255F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E255F#FFFFFF#000000##FFFFFF
##7E255F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E3F61
Deuteranopia (green-blind)
#494E5D
Tritanopia (blue-blind)
#86243E
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e255f;
/* rgb */ color: rgb(126, 37, 95);
/* oklch */ color: oklch(42.2% 0.138 344.6);
Tailwind
colors: {
  custom: {
    50: '#a7678c',
    500: '#7e255f',
    950: '#000000',
  },
}
SCSS
$custom: #7e255f;
$custom-light: #a7678c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e255f",
  "rgb": {
    "r": 126,
    "g": 37,
    "b": 95
  },
  "hsl": {
    "h": 320.899,
    "s": 54.601,
    "l": 31.961
  },
  "oklch": {
    "l": 0.42206,
    "c": 0.13814,
    "h": 344.6
  },
  "luminance": 0.06585
}

Semantic roles & 50–950 ramp

primary
#7E255F
secondary
#4FB071
accent
#DE7D4A
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E255F

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

Preview Lab → · Contrast checker → · Palette generator →

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