#7D226C#7D226C

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

Color values

HEX#7D226C
RGBrgb(125, 34, 108)
HSLhsl(311, 57%, 31%)
HSVhsv(311, 73%, 49%)
CMYKcmyk(0%, 72.8%, 13.6%, 51%)
CIE-LABlab(30.85, 47.05, -22.15)
CIE-LCHlch(30.85, 52.00, 334.79°)
OKLaboklab(42.37% 0.1381 -0.0603)
OKLCHoklch(42.37% 0.151 336.4)
XYZxyz(11.7364, 6.5878, 14.8379)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D226C #227D33
analogous
#60227D #7D226C #7D223E
triadic
#7D226C #6C7D22 #226C7D
tetradic
#7D226C #7D6022 #227D33 #223E7D
square
#7D226C #7D6022 #227D33 #223E7D
split-complementary
#7D226C #3E7D22 #227D60
monochromatic
#1D0819 #4D1542 #7D226C #AD2F96 #CE4BB6

Accessibility & contrast

On white

9.06
#7D226C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D226C
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D226C#FFFFFF#000000##FFFFFF
##7D226C1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d226c;
/* rgb */ color: rgb(125, 34, 108);
/* oklch */ color: oklch(42.4% 0.151 336.4);
Tailwind
colors: {
  custom: {
    50: '#a66696',
    500: '#7d226c',
    950: '#000000',
  },
}
SCSS
$custom: #7d226c;
$custom-light: #a66696;
$custom-dark: #000000;
JSON
{
  "hex": "#7d226c",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 108
  },
  "hsl": {
    "h": 311.209,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42374,
    "c": 0.15063,
    "h": 336.4
  },
  "luminance": 0.06587
}

Semantic roles & 50–950 ramp

primary
#7D226C
secondary
#4BB05E
accent
#E06447
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D226C

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

Preview Lab → · Contrast checker → · Palette generator →

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