#7B2240#7B2240

#7B2240 is a dark, vivid pink. Relative luminance 0.057; OKLCH L 40.2% C 0.125 H 4.2°. Best body text is #FFFFFF at 9.79:1 contrast (WCAG AA passes).

Color values

HEX#7B2240
RGBrgb(123, 34, 64)
HSLhsl(340, 57%, 31%)
HSVhsv(340, 72%, 48%)
CMYKcmyk(0%, 72.4%, 48%, 51.8%)
CIE-LABlab(28.71, 40.67, 3.40)
CIE-LCHlch(28.71, 40.81, 4.78°)
OKLaboklab(40.16% 0.1243 0.0092)
OKLCHoklch(40.16% 0.125 4.2)
XYZxyz(9.6666, 5.7264, 5.4458)
Luminance0.0573 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2240 #227B5D
analogous
#7B226C #7B2240 #7B3022
triadic
#7B2240 #407B22 #22407B
tetradic
#7B2240 #6C7B22 #227B5D #30227B
square
#7B2240 #6C7B22 #227B5D #30227B
split-complementary
#7B2240 #227B30 #226C7B
monochromatic
#1B070E #4B1527 #7B2240 #AB2F59 #CD4A76

Accessibility & contrast

On white

9.79
#7B2240 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.15
#7B2240 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2240
9.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2240#FFFFFF#000000##FFFFFF
##7B22401.009.792.159.79
#FFFFFF9.791.0021.001.00
#0000002.1521.001.0021.00
##FFFFFF9.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#363941
Deuteranopia (green-blind)
#4D4A3E
Tritanopia (blue-blind)
#86142E
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7b2240;
/* rgb */ color: rgb(123, 34, 64);
/* oklch */ color: oklch(40.2% 0.125 4.2);
Tailwind
colors: {
  custom: {
    50: '#a66474',
    500: '#7b2240',
    950: '#000000',
  },
}
SCSS
$custom: #7b2240;
$custom-light: #a66474;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2240",
  "rgb": {
    "r": 123,
    "g": 34,
    "b": 64
  },
  "hsl": {
    "h": 339.775,
    "s": 56.688,
    "l": 30.784
  },
  "oklch": {
    "l": 0.40161,
    "c": 0.12464,
    "h": 4.2
  },
  "luminance": 0.05725
}

Semantic roles & 50–950 ramp

primary
#7B2240
secondary
#4BAE8C
accent
#E0AD48
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7B2240

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

Preview Lab → · Contrast checker → · Palette generator →

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