#7A226B#7A226B

#7A226B is a dark, vivid pink. Relative luminance 0.063; OKLCH L 41.8% C 0.148 H 335.6°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7A226B
RGBrgb(122, 34, 107)
HSLhsl(310, 56%, 31%)
HSVhsv(310, 72%, 48%)
CMYKcmyk(0%, 72.1%, 12.3%, 52.2%)
CIE-LABlab(30.26, 46.09, -22.46)
CIE-LCHlch(30.26, 51.27, 334.02°)
OKLaboklab(41.83% 0.1347 -0.0612)
OKLCHoklch(41.83% 0.148 335.6)
XYZxyz(11.2520, 6.3441, 14.5390)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A226B #227A31
analogous
#5D227A #7A226B #7A223F
triadic
#7A226B #6B7A22 #226B7A
tetradic
#7A226B #7A5D22 #227A31 #223F7A
square
#7A226B #7A5D22 #227A31 #223F7A
split-complementary
#7A226B #3F7A22 #227A5D
monochromatic
#1A0717 #4A1541 #7A226B #AA2F95 #CD4AB6

Accessibility & contrast

On white

9.26
#7A226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7A226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A226B
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A226B#FFFFFF#000000##FFFFFF
##7A226B1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#223F6D
Deuteranopia (green-blind)
#404C69
Tritanopia (blue-blind)
#802843
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a226b;
/* rgb */ color: rgb(122, 34, 107);
/* oklch */ color: oklch(41.8% 0.148 335.6);
Tailwind
colors: {
  custom: {
    50: '#a36695',
    500: '#7a226b',
    950: '#000000',
  },
}
SCSS
$custom: #7a226b;
$custom-light: #a36695;
$custom-dark: #000000;
JSON
{
  "hex": "#7a226b",
  "rgb": {
    "r": 122,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 310.227,
    "s": 56.41,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41831,
    "c": 0.14793,
    "h": 335.6
  },
  "luminance": 0.06343
}

Semantic roles & 50–950 ramp

primary
#7A226B
secondary
#4BAD5C
accent
#E06248
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#0F060D
muted
#7F7A7E

Preview Lab

Preview with #7A226B

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

Preview Lab → · Contrast checker → · Palette generator →

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