#7D2172#7D2172

#7D2172 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.6% C 0.157 H 333.3°. Best body text is #FFFFFF at 9.00:1 contrast (WCAG AA passes).

Color values

HEX#7D2172
RGBrgb(125, 33, 114)
HSLhsl(307, 58%, 31%)
HSVhsv(307, 74%, 49%)
CMYKcmyk(0%, 73.6%, 8.8%, 51%)
CIE-LABlab(31.03, 48.39, -25.69)
CIE-LCHlch(31.03, 54.79, 332.04°)
OKLaboklab(42.6% 0.1398 -0.0704)
OKLCHoklch(42.6% 0.157 333.3)
XYZxyz(12.0386, 6.6636, 16.5685)
Luminance0.0666 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2172 #217D2C
analogous
#5A217D #7D2172 #7D2144
triadic
#7D2172 #727D21 #21727D
tetradic
#7D2172 #7D5A21 #217D2C #21447D
square
#7D2172 #7D5A21 #217D2C #21447D
split-complementary
#7D2172 #447D21 #217D5A
monochromatic
#1C071A #4D1446 #7D2172 #AD2E9E #CF49BF

Accessibility & contrast

On white

9.00
#7D2172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7D2172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2172
9.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2172#FFFFFF#000000##FFFFFF
##7D21721.009.002.339.00
#FFFFFF9.001.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1E4174
Deuteranopia (green-blind)
#3F4E70
Tritanopia (blue-blind)
#832A47
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d2172;
/* rgb */ color: rgb(125, 33, 114);
/* oklch */ color: oklch(42.6% 0.157 333.3);
Tailwind
colors: {
  custom: {
    50: '#a6669b',
    500: '#7d2172',
    950: '#000000',
  },
}
SCSS
$custom: #7d2172;
$custom-light: #a6669b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2172",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 114
  },
  "hsl": {
    "h": 307.174,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42604,
    "c": 0.15651,
    "h": 333.3
  },
  "luminance": 0.06663
}

Semantic roles & 50–950 ramp

primary
#7D2172
secondary
#4AB056
accent
#E15946
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2172

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

Preview Lab → · Contrast checker → · Palette generator →

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