#7D1D9C#7D1D9C

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

Color values

HEX#7D1D9C
RGBrgb(125, 29, 156)
HSLhsl(285, 69%, 36%)
HSVhsv(285, 81%, 61%)
CMYKcmyk(19.9%, 81.4%, 0%, 38.8%)
CIE-LABlab(33.22, 57.42, -48.30)
CIE-LCHlch(33.22, 75.03, 319.93°)
OKLaboklab(45.02% 0.1408 -0.1363)
OKLCHoklch(45.02% 0.196 315.9)
XYZxyz(14.8966, 7.6396, 32.1359)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1D9C #3C9C1D
analogous
#3D1D9C #7D1D9C #9C1D7C
triadic
#7D1D9C #9C7D1D #1D9C7D
tetradic
#7D1D9C #9C3D1D #3C9C1D #1D7C9C
square
#7D1D9C #9C3D1D #3C9C1D #1D7C9C
split-complementary
#7D1D9C #7C9C1D #1D9C3D
monochromatic
#2A0A35 #541368 #7D1D9C #A627D0 #BD54DF

Accessibility & contrast

On white

8.31
#7D1D9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1D9C
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1D9C#FFFFFF#000000##FFFFFF
##7D1D9C1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499F
Deuteranopia (green-blind)
#1A5199
Tritanopia (blue-blind)
#7B3B5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1d9c;
/* rgb */ color: rgb(125, 29, 156);
/* oklch */ color: oklch(45.0% 0.196 315.9);
Tailwind
colors: {
  custom: {
    50: '#a766ba',
    500: '#7d1d9c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1d9c;
$custom-light: #a766ba;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1d9c",
  "rgb": {
    "r": 125,
    "g": 29,
    "b": 156
  },
  "hsl": {
    "h": 285.354,
    "s": 68.649,
    "l": 36.275
  },
  "oklch": {
    "l": 0.45016,
    "c": 0.19599,
    "h": 315.9
  },
  "luminance": 0.07639
}

Semantic roles & 50–950 ramp

primary
#7D1D9C
secondary
#6EC252
accent
#EB3C67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D1D9C

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

Preview Lab → · Contrast checker → · Palette generator →

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