#7E2255#7E2255

#7E2255 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.5% C 0.136 H 350.6°. Best body text is #FFFFFF at 9.34:1 contrast (WCAG AA passes).

Color values

HEX#7E2255
RGBrgb(126, 34, 85)
HSLhsl(327, 58%, 31%)
HSVhsv(327, 73%, 49%)
CMYKcmyk(0%, 73%, 32.5%, 50.6%)
CIE-LABlab(30.00, 44.01, -8.53)
CIE-LCHlch(30.00, 44.83, 349.03°)
OKLaboklab(41.45% 0.1344 -0.0222)
OKLCHoklch(41.45% 0.136 350.6)
XYZxyz(10.8165, 6.2368, 9.2268)
Luminance0.0624 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E2255 #227E4B
analogous
#79227E #7E2255 #7E2227
triadic
#7E2255 #557E22 #22557E
tetradic
#7E2255 #7E7922 #227E4B #22277E
square
#7E2255 #7E7922 #227E4B #22277E
split-complementary
#7E2255 #277E22 #227E79
monochromatic
#1E0814 #4E1534 #7E2255 #AE2F76 #CF4C94

Accessibility & contrast

On white

9.34
#7E2255 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.25
#7E2255 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E2255
9.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E2255#FFFFFF#000000##FFFFFF
##7E22551.009.342.259.34
#FFFFFF9.341.0021.001.00
#0000002.2521.001.0021.00
##FFFFFF9.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#303C56
Deuteranopia (green-blind)
#4B4D53
Tritanopia (blue-blind)
#881C38
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e2255;
/* rgb */ color: rgb(126, 34, 85);
/* oklch */ color: oklch(41.5% 0.136 350.6);
Tailwind
colors: {
  custom: {
    50: '#a76584',
    500: '#7e2255',
    950: '#000000',
  },
}
SCSS
$custom: #7e2255;
$custom-light: #a76584;
$custom-dark: #000000;
JSON
{
  "hex": "#7e2255",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 85
  },
  "hsl": {
    "h": 326.739,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41454,
    "c": 0.13618,
    "h": 350.6
  },
  "luminance": 0.06236
}

Semantic roles & 50–950 ramp

primary
#7E2255
secondary
#4BB178
accent
#E18C47
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E2255

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

Preview Lab → · Contrast checker → · Palette generator →

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