#7D1C9B#7D1C9B

#7D1C9B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.196 H 316.3°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7D1C9B
RGBrgb(125, 28, 155)
HSLhsl(286, 69%, 36%)
HSVhsv(286, 82%, 61%)
CMYKcmyk(19.4%, 81.9%, 0%, 39.2%)
CIE-LABlab(33.04, 57.53, -47.97)
CIE-LCHlch(33.04, 74.90, 320.17°)
OKLaboklab(44.87% 0.1418 -0.1353)
OKLCHoklch(44.87% 0.196 316.3)
XYZxyz(14.7882, 7.5577, 31.6838)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C9B #3A9B1C
analogous
#3D1C9B #7D1C9B #9B1C79
triadic
#7D1C9B #9B7D1C #1C9B7D
tetradic
#7D1C9B #9B3D1C #3A9B1C #1C799B
square
#7D1C9B #9B3D1C #3A9B1C #1C799B
split-complementary
#7D1C9B #799B1C #1C9B3D
monochromatic
#290933 #531367 #7D1C9B #A725CF #BE52E0

Accessibility & contrast

On white

8.36
#7D1C9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7D1C9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C9B
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C9B#FFFFFF#000000##FFFFFF
##7D1C9B1.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489E
Deuteranopia (green-blind)
#1A5098
Tritanopia (blue-blind)
#7B3B5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1c9b;
/* rgb */ color: rgb(125, 28, 155);
/* oklch */ color: oklch(44.9% 0.196 316.3);
Tailwind
colors: {
  custom: {
    50: '#a766b9',
    500: '#7d1c9b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c9b;
$custom-light: #a766b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c9b",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 155
  },
  "hsl": {
    "h": 285.827,
    "s": 69.399,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44869,
    "c": 0.19602,
    "h": 316.3
  },
  "luminance": 0.07557
}

Semantic roles & 50–950 ramp

primary
#7D1C9B
secondary
#6BC350
accent
#EC3C65
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7D1C9B

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

Preview Lab → · Contrast checker → · Palette generator →

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