#7A2540#7A2540

#7A2540 is a dark, moderate pink. Relative luminance 0.058; OKLCH L 40.3% C 0.120 H 4.8°. Best body text is #FFFFFF at 9.69:1 contrast (WCAG AA passes).

Color values

HEX#7A2540
RGBrgb(122, 37, 64)
HSLhsl(341, 53%, 31%)
HSVhsv(341, 70%, 48%)
CMYKcmyk(0%, 69.7%, 47.5%, 52.2%)
CIE-LABlab(28.98, 39.06, 3.77)
CIE-LCHlch(28.98, 39.25, 5.51°)
OKLaboklab(40.33% 0.1193 0.0101)
OKLCHoklch(40.33% 0.12 4.8)
XYZxyz(9.6138, 5.8321, 5.4689)
Luminance0.0583 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2540 #257A5F
analogous
#7A256A #7A2540 #7A3425
triadic
#7A2540 #407A25 #25407A
tetradic
#7A2540 #6A7A25 #257A5F #34257A
square
#7A2540 #6A7A25 #257A5F #34257A
split-complementary
#7A2540 #257A34 #256A7A
monochromatic
#1C090F #4B1727 #7A2540 #A93359 #CA5076

Accessibility & contrast

On white

9.69
#7A2540 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.17
#7A2540 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2540
9.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2540#FFFFFF#000000##FFFFFF
##7A25401.009.692.179.69
#FFFFFF9.691.0021.001.00
#0000002.1721.001.0021.00
##FFFFFF9.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#373A41
Deuteranopia (green-blind)
#4E4A3E
Tritanopia (blue-blind)
#851930
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #7a2540;
/* rgb */ color: rgb(122, 37, 64);
/* oklch */ color: oklch(40.3% 0.120 4.8);
Tailwind
colors: {
  custom: {
    50: '#a56674',
    500: '#7a2540',
    950: '#000000',
  },
}
SCSS
$custom: #7a2540;
$custom-light: #a56674;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2540",
  "rgb": {
    "r": 122,
    "g": 37,
    "b": 64
  },
  "hsl": {
    "h": 340.941,
    "s": 53.459,
    "l": 31.176
  },
  "oklch": {
    "l": 0.40328,
    "c": 0.11969,
    "h": 4.8
  },
  "luminance": 0.05831
}

Semantic roles & 50–950 ramp

primary
#7A2540
secondary
#4EAC8F
accent
#DDAF4B
background
#FAF6F7
surface
#F4EBED
border
#CEC6C8
text
#100608
muted
#7F7A7B

Preview Lab

Preview with #7A2540

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

Preview Lab → · Contrast checker → · Palette generator →

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