#7B226B#7B226B

#7B226B is a dark, vivid pink. Relative luminance 0.064; OKLCH L 42.0% C 0.149 H 336.0°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#7B226B
RGBrgb(123, 34, 107)
HSLhsl(311, 57%, 31%)
HSVhsv(311, 72%, 48%)
CMYKcmyk(0%, 72.4%, 13%, 51.8%)
CIE-LABlab(30.44, 46.36, -22.17)
CIE-LCHlch(30.44, 51.39, 334.44°)
OKLaboklab(41.99% 0.1358 -0.0604)
OKLCHoklch(41.99% 0.149 336)
XYZxyz(11.3944, 6.4175, 14.5457)
Luminance0.0642 (WCAG relative)
Temperatureneutral
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B226B #227B32
analogous
#5E227B #7B226B #7B223E
triadic
#7B226B #6B7B22 #226B7B
tetradic
#7B226B #7B5E22 #227B32 #223E7B
square
#7B226B #7B5E22 #227B32 #223E7B
split-complementary
#7B226B #3E7B22 #227B5E
monochromatic
#1B0718 #4B1541 #7B226B #AB2F95 #CD4AB6

Accessibility & contrast

On white

9.20
#7B226B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B226B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B226B
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B226B#FFFFFF#000000##FFFFFF
##7B226B1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#233F6D
Deuteranopia (green-blind)
#414C69
Tritanopia (blue-blind)
#812843
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b226b;
/* rgb */ color: rgb(123, 34, 107);
/* oklch */ color: oklch(42.0% 0.149 336.0);
Tailwind
colors: {
  custom: {
    50: '#a46695',
    500: '#7b226b',
    950: '#000000',
  },
}
SCSS
$custom: #7b226b;
$custom-light: #a46695;
$custom-dark: #000000;
JSON
{
  "hex": "#7b226b",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 107
  },
  "hsl": {
    "h": 310.787,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.41994,
    "c": 0.14858,
    "h": 336
  },
  "luminance": 0.06417
}

Semantic roles & 50–950 ramp

primary
#7B226B
secondary
#4BAE5D
accent
#E06348
background
#FAF6F9
surface
#F4EBF1
border
#CEC6CB
text
#10060D
muted
#7F7A7E

Preview Lab

Preview with #7B226B

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

Preview Lab → · Contrast checker → · Palette generator →

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