#7A2158#7A2158

#7A2158 is a dark, vivid pink. Relative luminance 0.059; OKLCH L 40.8% C 0.136 H 346.8°. Best body text is #FFFFFF at 9.61:1 contrast (WCAG AA passes).

Color values

HEX#7A2158
RGBrgb(122, 33, 88)
HSLhsl(323, 57%, 30%)
HSVhsv(323, 73%, 48%)
CMYKcmyk(0%, 73%, 27.9%, 52.2%)
CIE-LABlab(29.24, 43.63, -11.73)
CIE-LCHlch(29.24, 45.18, 344.95°)
OKLaboklab(40.79% 0.1324 -0.031)
OKLCHoklch(40.79% 0.136 346.8)
XYZxyz(10.3318, 5.9310, 9.8313)
Luminance0.0593 (WCAG relative)
Temperaturewarm
Familypink

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2158 #217A43
analogous
#6F217A #7A2158 #7A212C
triadic
#7A2158 #587A21 #21587A
tetradic
#7A2158 #7A6F21 #217A43 #212C7A
square
#7A2158 #7A6F21 #217A43 #212C7A
split-complementary
#7A2158 #2C7A21 #217A6F
monochromatic
#1A0713 #4A1435 #7A2158 #AA2E7B #CD489A

Accessibility & contrast

On white

9.61
#7A2158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.19
#7A2158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2158
9.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2158#FFFFFF#000000##FFFFFF
##7A21581.009.612.199.61
#FFFFFF9.611.0021.001.00
#0000002.1921.001.0021.00
##FFFFFF9.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2C3B5A
Deuteranopia (green-blind)
#474A56
Tritanopia (blue-blind)
#831E39
Achromatopsia (no color)
#454545

Design tokens & code

CSS
--color: #7a2158;
/* rgb */ color: rgb(122, 33, 88);
/* oklch */ color: oklch(40.8% 0.136 346.8);
Tailwind
colors: {
  custom: {
    50: '#a46487',
    500: '#7a2158',
    950: '#000000',
  },
}
SCSS
$custom: #7a2158;
$custom-light: #a46487;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2158",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 88
  },
  "hsl": {
    "h": 322.921,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.40794,
    "c": 0.13596,
    "h": 346.8
  },
  "luminance": 0.0593
}

Semantic roles & 50–950 ramp

primary
#7A2158
secondary
#4AAD70
accent
#E18247
background
#FAF6F8
surface
#F4EBEF
border
#CEC6CA
text
#10060B
muted
#7F7A7C

Preview Lab

Preview with #7A2158

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

Preview Lab → · Contrast checker → · Palette generator →

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