#7C226A#7C226A

#7C226A is a dark, vivid pink. Relative luminance 0.065; OKLCH L 42.1% C 0.148 H 337.0°. Best body text is #FFFFFF at 9.15:1 contrast (WCAG AA passes).

Color values

HEX#7C226A
RGBrgb(124, 34, 106)
HSLhsl(312, 57%, 31%)
HSVhsv(312, 73%, 49%)
CMYKcmyk(0%, 72.6%, 14.5%, 51.4%)
CIE-LABlab(30.57, 46.46, -21.31)
CIE-LCHlch(30.57, 51.12, 335.36°)
OKLaboklab(42.1% 0.1367 -0.0579)
OKLCHoklch(42.1% 0.148 337)
XYZxyz(11.4859, 6.4708, 14.2769)
Luminance0.0647 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C226A #227C34
analogous
#61227C #7C226A #7C223D
triadic
#7C226A #6A7C22 #226A7C
tetradic
#7C226A #7C6122 #227C34 #223D7C
square
#7C226A #7C6122 #227C34 #223D7C
split-complementary
#7C226A #3D7C22 #227C61
monochromatic
#1C0818 #4C1541 #7C226A #AC2F93 #CE4BB3

Accessibility & contrast

On white

9.15
#7C226A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7C226A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C226A
9.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C226A#FFFFFF#000000##FFFFFF
##7C226A1.009.152.299.15
#FFFFFF9.151.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#243F6C
Deuteranopia (green-blind)
#424D68
Tritanopia (blue-blind)
#832743
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c226a;
/* rgb */ color: rgb(124, 34, 106);
/* oklch */ color: oklch(42.1% 0.148 337.0);
Tailwind
colors: {
  custom: {
    50: '#a56695',
    500: '#7c226a',
    950: '#000000',
  },
}
SCSS
$custom: #7c226a;
$custom-light: #a56695;
$custom-dark: #000000;
JSON
{
  "hex": "#7c226a",
  "rgb": {
    "r": 124,
    "g": 34,
    "b": 106
  },
  "hsl": {
    "h": 312,
    "s": 56.962,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42104,
    "c": 0.14847,
    "h": 337
  },
  "luminance": 0.0647
}

Semantic roles & 50–950 ramp

primary
#7C226A
secondary
#4BAF5F
accent
#E06648
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7C226A

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

Preview Lab → · Contrast checker → · Palette generator →

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