#7A2173#7A2173

#7A2173 is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.2% C 0.156 H 331.3°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7A2173
RGBrgb(122, 33, 115)
HSLhsl(305, 57%, 30%)
HSVhsv(305, 73%, 48%)
CMYKcmyk(0%, 73%, 5.7%, 52.2%)
CIE-LABlab(30.55, 47.81, -27.11)
CIE-LCHlch(30.55, 54.96, 330.44°)
OKLaboklab(42.18% 0.1365 -0.0746)
OKLCHoklch(42.18% 0.156 331.3)
XYZxyz(11.6644, 6.4640, 16.8497)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A2173 #217A28
analogous
#54217A #7A2173 #7A2146
triadic
#7A2173 #737A21 #21737A
tetradic
#7A2173 #7A5421 #217A28 #21467A
square
#7A2173 #7A5421 #217A28 #21467A
split-complementary
#7A2173 #467A21 #217A54
monochromatic
#1A0718 #4A1446 #7A2173 #AA2EA0 #CD48C3

Accessibility & contrast

On white

9.16
#7A2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7A2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A2173
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A2173#FFFFFF#000000##FFFFFF
##7A21731.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A4075
Deuteranopia (green-blind)
#3C4C71
Tritanopia (blue-blind)
#7F2B47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7a2173;
/* rgb */ color: rgb(122, 33, 115);
/* oklch */ color: oklch(42.2% 0.156 331.3);
Tailwind
colors: {
  custom: {
    50: '#a3659b',
    500: '#7a2173',
    950: '#000000',
  },
}
SCSS
$custom: #7a2173;
$custom-light: #a3659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7a2173",
  "rgb": {
    "r": 122,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 304.719,
    "s": 57.419,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42178,
    "c": 0.15555,
    "h": 331.3
  },
  "luminance": 0.06463
}

Semantic roles & 50–950 ramp

primary
#7A2173
secondary
#4AAD52
accent
#E15347
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#0F060E
muted
#7F7A7E

Preview Lab

Preview with #7A2173

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

Preview Lab → · Contrast checker → · Palette generator →

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