#7B2173#7B2173

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

Color values

HEX#7B2173
RGBrgb(123, 33, 115)
HSLhsl(305, 58%, 31%)
HSVhsv(305, 73%, 48%)
CMYKcmyk(0%, 73.2%, 6.5%, 51.8%)
CIE-LABlab(30.73, 48.06, -26.82)
CIE-LCHlch(30.73, 55.04, 330.83°)
OKLaboklab(42.34% 0.1376 -0.0737)
OKLCHoklch(42.34% 0.156 331.8)
XYZxyz(11.8068, 6.5374, 16.8563)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B2173 #217B29
analogous
#56217B #7B2173 #7B2146
triadic
#7B2173 #737B21 #21737B
tetradic
#7B2173 #7B5621 #217B29 #21467B
square
#7B2173 #7B5621 #217B29 #21467B
split-complementary
#7B2173 #467B21 #217B56
monochromatic
#1A0719 #4B1446 #7B2173 #AB2EA0 #CE48C2

Accessibility & contrast

On white

9.10
#7B2173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7B2173 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B2173
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B2173#FFFFFF#000000##FFFFFF
##7B21731.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4075
Deuteranopia (green-blind)
#3D4D71
Tritanopia (blue-blind)
#802B47
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7b2173;
/* rgb */ color: rgb(123, 33, 115);
/* oklch */ color: oklch(42.3% 0.156 331.8);
Tailwind
colors: {
  custom: {
    50: '#a4669b',
    500: '#7b2173',
    950: '#000000',
  },
}
SCSS
$custom: #7b2173;
$custom-light: #a4669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7b2173",
  "rgb": {
    "r": 123,
    "g": 33,
    "b": 115
  },
  "hsl": {
    "h": 305.333,
    "s": 57.692,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42339,
    "c": 0.15613,
    "h": 331.8
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#7B2173
secondary
#4AAE53
accent
#E15547
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7B2173

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

Preview Lab → · Contrast checker → · Palette generator →

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