#7B2162#7B2162

#7B2162 is a dark, vivid pink. Relative luminance 0.062; OKLCH L 41.4% C 0.143 H 341.1°. Best body text is #FFFFFF at 9.39:1 contrast (WCAG AA passes).

Color values

HEX#7B2162
RGBrgb(123, 33, 98)
HSLhsl(317, 58%, 31%)
HSVhsv(317, 73%, 48%)
CMYKcmyk(0%, 73.2%, 20.3%, 51.8%)
CIE-LABlab(29.87, 45.35, -17.26)
CIE-LCHlch(29.87, 48.53, 339.16°)
OKLaboklab(41.43% 0.1356 -0.0464)
OKLCHoklch(41.43% 0.143 341.1)
XYZxyz(10.9172, 6.1816, 12.1711)
Luminance0.0618 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2162 #217B3A
analogous
#67217B #7B2162 #7B2135
triadic
#7B2162 #627B21 #21627B
tetradic
#7B2162 #7B6721 #217B3A #21357B
square
#7B2162 #7B6721 #217B3A #21357B
split-complementary
#7B2162 #357B21 #217B67
monochromatic
#1A0715 #4B143C #7B2162 #AB2E88 #CE48A9

Accessibility & contrast

On white

9.39
#7B2162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.24
#7B2162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2162
9.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2162#FFFFFF#000000##FFFFFF
##7B21621.009.392.249.39
#FFFFFF9.391.0021.001.00
#0000002.2421.001.0021.00
##FFFFFF9.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#283D64
Deuteranopia (green-blind)
#444C60
Tritanopia (blue-blind)
#83233E
Achromatopsia (no color)
#464646

Design tokens & code

CSS
--color: #7b2162;
/* rgb */ color: rgb(123, 33, 98);
/* oklch */ color: oklch(41.4% 0.143 341.1);
Tailwind
colors: {
  custom: {
    50: '#a4658e',
    500: '#7b2162',
    950: '#000000',
  },
}
SCSS
$custom: #7b2162;
$custom-light: #a4658e;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2162",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 98
  },
  "hsl": {
    "h": 316.667,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.41432,
    "c": 0.14328,
    "h": 341.1
  },
  "luminance": 0.06181
}

Semantic roles & 50–950 ramp

primary
#7B2162
secondary
#4AAE66
accent
#E17247
background
#FAF6F8
surface
#F4EBF0
border
#CEC6CB
text
#10060C
muted
#7F7A7D

Preview Lab

Preview with #7B2162

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

Preview Lab → · Contrast checker → · Palette generator →

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