#7B2157#7B2157

#7B2157 is a dark, vivid pink. Relative luminance 0.060; OKLCH L 40.9% C 0.136 H 347.9°. Best body text is #FFFFFF at 9.56:1 contrast (WCAG AA passes).

Color values

HEX#7B2157
RGBrgb(123, 33, 87)
HSLhsl(324, 58%, 31%)
HSVhsv(324, 73%, 48%)
CMYKcmyk(0%, 73.2%, 29.3%, 51.8%)
CIE-LABlab(29.38, 43.79, -10.84)
CIE-LCHlch(29.38, 45.11, 346.10°)
OKLaboklab(40.92% 0.1331 -0.0285)
OKLCHoklch(40.92% 0.136 347.9)
XYZxyz(10.4330, 5.9879, 9.6213)
Luminance0.0599 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2157 #217B45
analogous
#72217B #7B2157 #7B212A
triadic
#7B2157 #577B21 #21577B
tetradic
#7B2157 #7B7221 #217B45 #212A7B
square
#7B2157 #7B7221 #217B45 #212A7B
split-complementary
#7B2157 #2A7B21 #217B72
monochromatic
#1A0713 #4B1435 #7B2157 #AB2E79 #CE4899

Accessibility & contrast

On white

9.56
#7B2157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7B2157
9.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2157#FFFFFF#000000##FFFFFF
##7B21571.009.562.209.56
#FFFFFF9.561.0021.001.00
#0000002.2021.001.0021.00
##FFFFFF9.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D3B59
Deuteranopia (green-blind)
#484B55
Tritanopia (blue-blind)
#841E39
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7b2157;
/* rgb */ color: rgb(123, 33, 87);
/* oklch */ color: oklch(40.9% 0.136 347.9);
Tailwind
colors: {
  custom: {
    50: '#a56586',
    500: '#7b2157',
    950: '#000000',
  },
}
SCSS
$custom: #7b2157;
$custom-light: #a56586;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2157",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 87
  },
  "hsl": {
    "h": 324,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.40921,
    "c": 0.13616,
    "h": 347.9
  },
  "luminance": 0.05987
}

Semantic roles & 50–950 ramp

primary
#7B2157
secondary
#4AAE72
accent
#E18447
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7B2157

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

Preview Lab → · Contrast checker → · Palette generator →

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