#7D1C83#7D1C83

#7D1C83 is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.176 H 325.5°. Best body text is #FFFFFF at 8.88:1 contrast (WCAG AA passes).

Color values

HEX#7D1C83
RGBrgb(125, 28, 131)
HSLhsl(297, 65%, 31%)
HSVhsv(297, 79%, 51%)
CMYKcmyk(4.6%, 78.6%, 0%, 48.6%)
CIE-LABlab(31.42, 53.03, -35.79)
CIE-LCHlch(31.42, 63.98, 325.98°)
OKLaboklab(43.2% 0.1448 -0.0997)
OKLCHoklch(43.2% 0.176 325.5)
XYZxyz(12.9691, 6.8300, 22.1036)
Luminance0.0683 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C83 #22831C
analogous
#491C83 #7D1C83 #831C55
triadic
#7D1C83 #837D1C #1C837D
tetradic
#7D1C83 #83491C #22831C #1C5583
square
#7D1C83 #83491C #22831C #1C5583
split-complementary
#7D1C83 #55831C #1C8349
monochromatic
#1D061E #4D1151 #7D1C83 #AD27B5 #CE43D7

Accessibility & contrast

On white

8.88
#7D1C83 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.37
#7D1C83 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C83
8.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C83#FFFFFF#000000##FFFFFF
##7D1C831.008.882.378.88
#FFFFFF8.881.0021.001.00
#0000002.3721.001.0021.00
##FFFFFF8.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004286
Deuteranopia (green-blind)
#334E81
Tritanopia (blue-blind)
#802F4F
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1c83;
/* rgb */ color: rgb(125, 28, 131);
/* oklch */ color: oklch(43.2% 0.176 325.5);
Tailwind
colors: {
  custom: {
    50: '#a664a7',
    500: '#7d1c83',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c83;
$custom-light: #a664a7;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c83",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 131
  },
  "hsl": {
    "h": 296.505,
    "s": 64.78,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43202,
    "c": 0.1758,
    "h": 325.5
  },
  "luminance": 0.06829
}

Semantic roles & 50–950 ramp

primary
#7D1C83
secondary
#4BB645
accent
#E8404A
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1C83

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

Preview Lab → · Contrast checker → · Palette generator →

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