#7E226A#7E226A

#7E226A is a dark, vivid pink. Relative luminance 0.066; OKLCH L 42.4% C 0.150 H 338.0°. Best body text is #FFFFFF at 9.04:1 contrast (WCAG AA passes).

Color values

HEX#7E226A
RGBrgb(126, 34, 106)
HSLhsl(313, 58%, 31%)
HSVhsv(313, 73%, 49%)
CMYKcmyk(0%, 73%, 15.9%, 50.6%)
CIE-LABlab(30.93, 47.00, -20.73)
CIE-LCHlch(30.93, 51.36, 336.20°)
OKLaboklab(42.43% 0.1389 -0.0562)
OKLCHoklch(42.43% 0.15 338)
XYZxyz(11.7780, 6.6214, 14.2906)
Luminance0.0662 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E226A #227E36
analogous
#64227E #7E226A #7E223C
triadic
#7E226A #6A7E22 #226A7E
tetradic
#7E226A #7E6422 #227E36 #223C7E
square
#7E226A #7E6422 #227E36 #223C7E
split-complementary
#7E226A #3C7E22 #227E64
monochromatic
#1E0819 #4E1541 #7E226A #AE2F93 #CF4CB2

Accessibility & contrast

On white

9.04
#7E226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7E226A
9.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E226A#FFFFFF#000000##FFFFFF
##7E226A1.009.042.329.04
#FFFFFF9.041.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#26406C
Deuteranopia (green-blind)
#444E68
Tritanopia (blue-blind)
#852643
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e226a;
/* rgb */ color: rgb(126, 34, 106);
/* oklch */ color: oklch(42.4% 0.150 338.0);
Tailwind
colors: {
  custom: {
    50: '#a76695',
    500: '#7e226a',
    950: '#000000',
  },
}
SCSS
$custom: #7e226a;
$custom-light: #a76695;
$custom-dark: #000000;
JSON
{
  "hex": "#7e226a",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 313.043,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42433,
    "c": 0.1498,
    "h": 338
  },
  "luminance": 0.0662
}

Semantic roles & 50–950 ramp

primary
#7E226A
secondary
#4BB161
accent
#E16847
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E226A

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

Preview Lab → · Contrast checker → · Palette generator →

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