#7E225F#7E225F

#7E225F is a dark, vivid pink. Relative luminance 0.064; OKLCH L 41.9% C 0.142 H 344.3°. Best body text is #FFFFFF at 9.21:1 contrast (WCAG AA passes).

Color values

HEX#7E225F
RGBrgb(126, 34, 95)
HSLhsl(320, 58%, 31%)
HSVhsv(320, 73%, 49%)
CMYKcmyk(0%, 73%, 24.6%, 50.6%)
CIE-LABlab(30.42, 45.36, -14.42)
CIE-LCHlch(30.42, 47.60, 342.36°)
OKLaboklab(41.89% 0.1369 -0.0384)
OKLCHoklch(41.89% 0.142 344.3)
XYZxyz(11.2422, 6.4071, 11.4689)
Luminance0.0641 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E225F #227E41
analogous
#6F227E #7E225F #7E2231
triadic
#7E225F #5F7E22 #225F7E
tetradic
#7E225F #7E6F22 #227E41 #22317E
square
#7E225F #7E6F22 #227E41 #22317E
split-complementary
#7E225F #317E22 #227E6F
monochromatic
#1E0816 #4E153B #7E225F #AE2F83 #CF4CA3

Accessibility & contrast

On white

9.21
#7E225F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7E225F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E225F
9.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E225F#FFFFFF#000000##FFFFFF
##7E225F1.009.212.289.21
#FFFFFF9.211.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3E61
Deuteranopia (green-blind)
#484D5D
Tritanopia (blue-blind)
#86213D
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7e225f;
/* rgb */ color: rgb(126, 34, 95);
/* oklch */ color: oklch(41.9% 0.142 344.3);
Tailwind
colors: {
  custom: {
    50: '#a7668c',
    500: '#7e225f',
    950: '#000000',
  },
}
SCSS
$custom: #7e225f;
$custom-light: #a7668c;
$custom-dark: #000000;
JSON
{
  "hex": "#7e225f",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 95
  },
  "hsl": {
    "h": 320.217,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41893,
    "c": 0.14216,
    "h": 344.3
  },
  "luminance": 0.06406
}

Semantic roles & 50–950 ramp

primary
#7E225F
secondary
#4BB16D
accent
#E17B47
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7E225F

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

Preview Lab → · Contrast checker → · Palette generator →

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