#7D1C9D#7D1C9D

#7D1C9D is a mid, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.198 H 315.6°. Best body text is #FFFFFF at 8.32:1 contrast (WCAG AA passes).

Color values

HEX#7D1C9D
RGBrgb(125, 28, 157)
HSLhsl(285, 70%, 36%)
HSVhsv(285, 82%, 62%)
CMYKcmyk(20.4%, 82.2%, 0%, 38.4%)
CIE-LABlab(33.19, 57.92, -48.95)
CIE-LCHlch(33.19, 75.84, 319.80°)
OKLaboklab(45.02% 0.1414 -0.1382)
OKLCHoklch(45.02% 0.198 315.6)
XYZxyz(14.9575, 7.6254, 32.5757)
Luminance0.0762 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C9D #3C9D1C
analogous
#3D1C9D #7D1C9D #9D1C7D
triadic
#7D1C9D #9D7D1C #1C9D7D
tetradic
#7D1C9D #9D3D1C #3C9D1C #1C7D9D
square
#7D1C9D #9D3D1C #3C9D1C #1C7D9D
split-complementary
#7D1C9D #7D9D1C #1C9D3D
monochromatic
#2A0935 #541369 #7D1C9D #A625D1 #BD53E0

Accessibility & contrast

On white

8.32
#7D1C9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7D1C9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C9D
8.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C9D#FFFFFF#000000##FFFFFF
##7D1C9D1.008.322.538.32
#FFFFFF8.321.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#17509A
Tritanopia (blue-blind)
#7A3C5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1c9d;
/* rgb */ color: rgb(125, 28, 157);
/* oklch */ color: oklch(45.0% 0.198 315.6);
Tailwind
colors: {
  custom: {
    50: '#a766bb',
    500: '#7d1c9d',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c9d;
$custom-light: #a766bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c9d",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 157
  },
  "hsl": {
    "h": 285.116,
    "s": 69.73,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45017,
    "c": 0.19774,
    "h": 315.6
  },
  "luminance": 0.07625
}

Semantic roles & 50–950 ramp

primary
#7D1C9D
secondary
#6EC351
accent
#ED3B67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D1C9D

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

Preview Lab → · Contrast checker → · Palette generator →

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