#7E226D#7E226D

#7E226D is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.6% C 0.152 H 336.3°. Best body text is #FFFFFF at 8.99:1 contrast (WCAG AA passes).

Color values

HEX#7E226D
RGBrgb(126, 34, 109)
HSLhsl(311, 58%, 31%)
HSVhsv(311, 73%, 49%)
CMYKcmyk(0%, 73%, 13.5%, 50.6%)
CIE-LABlab(31.08, 47.47, -22.41)
CIE-LCHlch(31.08, 52.49, 334.72°)
OKLaboklab(42.59% 0.1393 -0.061)
OKLCHoklch(42.59% 0.152 336.3)
XYZxyz(11.9367, 6.6849, 15.1267)
Luminance0.0668 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E226D #227E33
analogous
#61227E #7E226D #7E223F
triadic
#7E226D #6D7E22 #226D7E
tetradic
#7E226D #7E6122 #227E33 #223F7E
square
#7E226D #7E6122 #227E33 #223F7E
split-complementary
#7E226D #3F7E22 #227E61
monochromatic
#1E081A #4E1543 #7E226D #AE2F97 #CF4CB6

Accessibility & contrast

On white

8.99
#7E226D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7E226D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E226D
8.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E226D#FFFFFF#000000##FFFFFF
##7E226D1.008.992.348.99
#FFFFFF8.991.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24406F
Deuteranopia (green-blind)
#434E6B
Tritanopia (blue-blind)
#852844
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e226d;
/* rgb */ color: rgb(126, 34, 109);
/* oklch */ color: oklch(42.6% 0.152 336.3);
Tailwind
colors: {
  custom: {
    50: '#a66697',
    500: '#7e226d',
    950: '#000000',
  },
}
SCSS
$custom: #7e226d;
$custom-light: #a66697;
$custom-dark: #000000;
JSON
{
  "hex": "#7e226d",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 109
  },
  "hsl": {
    "h": 311.087,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.4259,
    "c": 0.15203,
    "h": 336.3
  },
  "luminance": 0.06684
}

Semantic roles & 50–950 ramp

primary
#7E226D
secondary
#4BB15E
accent
#E16347
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E226D

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

Preview Lab → · Contrast checker → · Palette generator →

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