#7D226B#7D226B

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

Color values

HEX#7D226B
RGBrgb(125, 34, 107)
HSLhsl(312, 57%, 31%)
HSVhsv(312, 73%, 49%)
CMYKcmyk(0%, 72.8%, 14.4%, 51%)
CIE-LABlab(30.80, 46.89, -21.58)
CIE-LCHlch(30.80, 51.62, 335.28°)
OKLaboklab(42.32% 0.1379 -0.0587)
OKLCHoklch(42.32% 0.15 337)
XYZxyz(11.6835, 6.5666, 14.5592)
Luminance0.0657 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D226B #227D34
analogous
#61227D #7D226B #7D223D
triadic
#7D226B #6B7D22 #226B7D
tetradic
#7D226B #7D6122 #227D34 #223D7D
square
#7D226B #7D6122 #227D34 #223D7D
split-complementary
#7D226B #3D7D22 #227D61
monochromatic
#1D0819 #4D1542 #7D226B #AD2F94 #CE4BB4

Accessibility & contrast

On white

9.08
#7D226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7D226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D226B
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D226B#FFFFFF#000000##FFFFFF
##7D226B1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#24406D
Deuteranopia (green-blind)
#434D69
Tritanopia (blue-blind)
#842743
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d226b;
/* rgb */ color: rgb(125, 34, 107);
/* oklch */ color: oklch(42.3% 0.150 337.0);
Tailwind
colors: {
  custom: {
    50: '#a66695',
    500: '#7d226b',
    950: '#000000',
  },
}
SCSS
$custom: #7d226b;
$custom-light: #a66695;
$custom-dark: #000000;
JSON
{
  "hex": "#7d226b",
  "rgb": {
    "r": 125,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 311.868,
    "s": 57.233,
    "l": 31.176
  },
  "oklch": {
    "l": 0.42321,
    "c": 0.14988,
    "h": 337
  },
  "luminance": 0.06566
}

Semantic roles & 50–950 ramp

primary
#7D226B
secondary
#4BB05F
accent
#E06647
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7D226B

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

Preview Lab → · Contrast checker → · Palette generator →

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