#7D3176#7D3176

#7D3176 is a dark, vivid purple. Relative luminance 0.079; OKLCH L 44.6% C 0.137 H 331.3°. Best body text is #FFFFFF at 8.16:1 contrast (WCAG AA passes).

Color values

HEX#7D3176
RGBrgb(125, 49, 118)
HSLhsl(306, 44%, 34%)
HSVhsv(306, 61%, 49%)
CMYKcmyk(0%, 60.8%, 5.6%, 51%)
CIE-LABlab(33.70, 42.23, -24.03)
CIE-LCHlch(33.70, 48.59, 330.36°)
OKLaboklab(44.61% 0.1203 -0.0658)
OKLCHoklch(44.61% 0.137 331.3)
XYZxyz(12.8257, 7.8655, 17.9787)
Luminance0.0786 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D3176 #317D38
analogous
#5E317D #7D3176 #7D3150
triadic
#7D3176 #767D31 #31767D
tetradic
#7D3176 #7D5E31 #317D38 #31507D
square
#7D3176 #7D5E31 #317D38 #31507D
split-complementary
#7D3176 #507D31 #317D5E
monochromatic
#250F23 #51204C #7D3176 #A942A0 #C366BA

Accessibility & contrast

On white

8.16
#7D3176 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7D3176 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D3176
8.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D3176#FFFFFF#000000##FFFFFF
##7D31761.008.162.578.16
#FFFFFF8.161.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2D4878
Deuteranopia (green-blind)
#465374
Tritanopia (blue-blind)
#82384F
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7d3176;
/* rgb */ color: rgb(125, 49, 118);
/* oklch */ color: oklch(44.6% 0.137 331.3);
Tailwind
colors: {
  custom: {
    50: '#a56e9d',
    500: '#7d3176',
    950: '#000000',
  },
}
SCSS
$custom: #7d3176;
$custom-light: #a56e9d;
$custom-dark: #000000;
JSON
{
  "hex": "#7d3176",
  "rgb": {
    "r": 125,
    "g": 49,
    "b": 118
  },
  "hsl": {
    "h": 305.526,
    "s": 43.678,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44614,
    "c": 0.13713,
    "h": 331.3
  },
  "luminance": 0.07865
}

Semantic roles & 50–950 ramp

primary
#7D3176
secondary
#60AA66
accent
#D36054
background
#FAF6F9
surface
#F4ECF2
border
#CEC7CC
text
#10070E
muted
#7F7A7E

Preview Lab

Preview with #7D3176

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

Preview Lab → · Contrast checker → · Palette generator →

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