#7B2158#7B2158

#7B2158 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 41.0% C 0.137 H 347.3°. Best body text is #FFFFFF at 9.54:1 contrast (WCAG AA passes).

Color values

HEX#7B2158
RGBrgb(123, 33, 88)
HSLhsl(323, 58%, 31%)
HSVhsv(323, 73%, 48%)
CMYKcmyk(0%, 73.2%, 28.5%, 51.8%)
CIE-LABlab(29.42, 43.92, -11.43)
CIE-LCHlch(29.42, 45.39, 345.42°)
OKLaboklab(40.97% 0.1334 -0.0301)
OKLCHoklch(40.97% 0.137 347.3)
XYZxyz(10.4742, 6.0044, 9.8380)
Luminance0.0600 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2158 #217B44
analogous
#71217B #7B2158 #7B212B
triadic
#7B2158 #587B21 #21587B
tetradic
#7B2158 #7B7121 #217B44 #212B7B
square
#7B2158 #7B7121 #217B44 #212B7B
split-complementary
#7B2158 #2B7B21 #217B71
monochromatic
#1A0713 #4B1435 #7B2158 #AB2E7B #CE489A

Accessibility & contrast

On white

9.54
#7B2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.20
#7B2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2158
9.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2158#FFFFFF#000000##FFFFFF
##7B21581.009.542.209.54
#FFFFFF9.541.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3B5A
Deuteranopia (green-blind)
#474B56
Tritanopia (blue-blind)
#841E39
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b2158;
/* rgb */ color: rgb(123, 33, 88);
/* oklch */ color: oklch(41.0% 0.137 347.3);
Tailwind
colors: {
  custom: {
    50: '#a56587',
    500: '#7b2158',
    950: '#000000',
  },
}
SCSS
$custom: #7b2158;
$custom-light: #a56587;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2158",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 323.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40965,
    "c": 0.13675,
    "h": 347.3
  },
  "luminance": 0.06003
}

Semantic roles & 50–950 ramp

primary
#7B2158
secondary
#4AAE71
accent
#E18347
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7B2158

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

Preview Lab → · Contrast checker → · Palette generator →

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