#7E225C#7E225C

#7E225C is a dark, vivid pink. Relative luminance 0.064; OKLCH L 41.8% C 0.140 H 346.2°. Best body text is #FFFFFF at 9.25:1 contrast (WCAG AA passes).

Color values

HEX#7E225C
RGBrgb(126, 34, 92)
HSLhsl(322, 58%, 31%)
HSVhsv(322, 73%, 49%)
CMYKcmyk(0%, 73%, 27%, 50.6%)
CIE-LABlab(30.29, 44.94, -12.67)
CIE-LCHlch(30.29, 46.70, 344.25°)
OKLaboklab(41.76% 0.1362 -0.0336)
OKLCHoklch(41.76% 0.14 346.2)
XYZxyz(11.1084, 6.3536, 10.7645)
Luminance0.0635 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E225C #227E44
analogous
#72227E #7E225C #7E222E
triadic
#7E225C #5C7E22 #225C7E
tetradic
#7E225C #7E7222 #227E44 #222E7E
square
#7E225C #7E7222 #227E44 #222E7E
split-complementary
#7E225C #2E7E22 #227E72
monochromatic
#1E0816 #4E1539 #7E225C #AE2F7F #CF4C9E

Accessibility & contrast

On white

9.25
#7E225C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7E225C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E225C
9.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E225C#FFFFFF#000000##FFFFFF
##7E225C1.009.252.279.25
#FFFFFF9.251.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3D5E
Deuteranopia (green-blind)
#494D5A
Tritanopia (blue-blind)
#87203C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7e225c;
/* rgb */ color: rgb(126, 34, 92);
/* oklch */ color: oklch(41.8% 0.140 346.2);
Tailwind
colors: {
  custom: {
    50: '#a7668a',
    500: '#7e225c',
    950: '#000000',
  },
}
SCSS
$custom: #7e225c;
$custom-light: #a7668a;
$custom-dark: #000000;
JSON
{
  "hex": "#7e225c",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 92
  },
  "hsl": {
    "h": 322.174,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.41756,
    "c": 0.14026,
    "h": 346.2
  },
  "luminance": 0.06352
}

Semantic roles & 50–950 ramp

primary
#7E225C
secondary
#4BB171
accent
#E18047
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7E225C

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

Preview Lab → · Contrast checker → · Palette generator →

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