#7D2174#7D2174

#7D2174 is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.7% C 0.158 H 332.3°. Best body text is #FFFFFF at 8.97:1 contrast (WCAG AA passes).

Color values

HEX#7D2174
RGBrgb(125, 33, 116)
HSLhsl(306, 58%, 31%)
HSVhsv(306, 74%, 49%)
CMYKcmyk(0%, 73.6%, 7.2%, 51%)
CIE-LABlab(31.14, 48.72, -26.79)
CIE-LCHlch(31.14, 55.61, 331.20°)
OKLaboklab(42.72% 0.1399 -0.0736)
OKLCHoklch(42.72% 0.158 332.3)
XYZxyz(12.1537, 6.7096, 17.1746)
Luminance0.0671 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D2174 #217D2A
analogous
#58217D #7D2174 #7D2146
triadic
#7D2174 #747D21 #21747D
tetradic
#7D2174 #7D5821 #217D2A #21467D
square
#7D2174 #7D5821 #217D2A #21467D
split-complementary
#7D2174 #467D21 #217D58
monochromatic
#1C071A #4D1447 #7D2174 #AD2EA1 #CF49C2

Accessibility & contrast

On white

8.97
#7D2174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7D2174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D2174
8.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D2174#FFFFFF#000000##FFFFFF
##7D21741.008.972.348.97
#FFFFFF8.971.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1C4176
Deuteranopia (green-blind)
#3E4E72
Tritanopia (blue-blind)
#822B48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d2174;
/* rgb */ color: rgb(125, 33, 116);
/* oklch */ color: oklch(42.7% 0.158 332.3);
Tailwind
colors: {
  custom: {
    50: '#a6669c',
    500: '#7d2174',
    950: '#000000',
  },
}
SCSS
$custom: #7d2174;
$custom-light: #a6669c;
$custom-dark: #000000;
JSON
{
  "hex": "#7d2174",
  "rgb": {
    "r": 125,
    "g": 33,
    "b": 116
  },
  "hsl": {
    "h": 305.87,
    "s": 58.228,
    "l": 30.98
  },
  "oklch": {
    "l": 0.42717,
    "c": 0.15808,
    "h": 332.3
  },
  "luminance": 0.06709
}

Semantic roles & 50–950 ramp

primary
#7D2174
secondary
#4AB054
accent
#E15646
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D2174

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

Preview Lab → · Contrast checker → · Palette generator →

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