#7E226C#7E226C

#7E226C is a dark, vivid pink. Relative luminance 0.067; OKLCH L 42.5% C 0.151 H 336.9°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7E226C
RGBrgb(126, 34, 108)
HSLhsl(312, 58%, 31%)
HSVhsv(312, 73%, 49%)
CMYKcmyk(0%, 73%, 14.3%, 50.6%)
CIE-LABlab(31.03, 47.31, -21.85)
CIE-LCHlch(31.03, 52.11, 335.21°)
OKLaboklab(42.54% 0.1391 -0.0594)
OKLCHoklch(42.54% 0.151 336.9)
XYZxyz(11.8832, 6.6635, 14.8448)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E226C #227E34
analogous
#62227E #7E226C #7E223E
triadic
#7E226C #6C7E22 #226C7E
tetradic
#7E226C #7E6222 #227E34 #223E7E
square
#7E226C #7E6222 #227E34 #223E7E
split-complementary
#7E226C #3E7E22 #227E62
monochromatic
#1E0819 #4E1543 #7E226C #AE2F95 #CF4CB5

Accessibility & contrast

On white

9.00
#7E226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7E226C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7E226C
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E226C#FFFFFF#000000##FFFFFF
##7E226C1.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24406E
Deuteranopia (green-blind)
#434E6A
Tritanopia (blue-blind)
#852744
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7e226c;
/* rgb */ color: rgb(126, 34, 108);
/* oklch */ color: oklch(42.5% 0.151 336.9);
Tailwind
colors: {
  custom: {
    50: '#a66696',
    500: '#7e226c',
    950: '#000000',
  },
}
SCSS
$custom: #7e226c;
$custom-light: #a66696;
$custom-dark: #000000;
JSON
{
  "hex": "#7e226c",
  "rgb": {
    "r": 126,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 311.739,
    "s": 57.5,
    "l": 31.373
  },
  "oklch": {
    "l": 0.42537,
    "c": 0.15127,
    "h": 336.9
  },
  "luminance": 0.06662
}

Semantic roles & 50–950 ramp

primary
#7E226C
secondary
#4BB15F
accent
#E16547
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7E226C

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

Preview Lab → · Contrast checker → · Palette generator →

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