#7D1C97#7D1C97

#7D1C97 is a dark, vivid purple. Relative luminance 0.074; OKLCH L 44.6% C 0.193 H 317.7°. Best body text is #FFFFFF at 8.45:1 contrast (WCAG AA passes).

Color values

HEX#7D1C97
RGBrgb(125, 28, 151)
HSLhsl(287, 69%, 35%)
HSVhsv(287, 81%, 59%)
CMYKcmyk(17.2%, 81.5%, 0%, 40.8%)
CIE-LABlab(32.76, 56.75, -46.00)
CIE-LCHlch(32.76, 73.05, 320.97°)
OKLaboklab(44.58% 0.1425 -0.1295)
OKLCHoklch(44.58% 0.193 317.7)
XYZxyz(14.4578, 7.4255, 29.9439)
Luminance0.0742 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C97 #36971C
analogous
#3F1C97 #7D1C97 #971C73
triadic
#7D1C97 #977D1C #1C977D
tetradic
#7D1C97 #973F1C #36971C #1C7397
square
#7D1C97 #973F1C #36971C #1C7397
split-complementary
#7D1C97 #73971C #1C973F
monochromatic
#280930 #521263 #7D1C97 #A826CB #C04FDE

Accessibility & contrast

On white

8.45
#7D1C97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.49
#7D1C97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C97
8.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C97#FFFFFF#000000##FFFFFF
##7D1C971.008.452.498.45
#FFFFFF8.451.0021.001.00
#0000002.4921.001.0021.00
##FFFFFF8.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00479A
Deuteranopia (green-blind)
#205094
Tritanopia (blue-blind)
#7C395A
Achromatopsia (no color)
#4D4D4D

Design tokens & code

CSS
--color: #7d1c97;
/* rgb */ color: rgb(125, 28, 151);
/* oklch */ color: oklch(44.6% 0.193 317.7);
Tailwind
colors: {
  custom: {
    50: '#a765b6',
    500: '#7d1c97',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c97;
$custom-light: #a765b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c97",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 151
  },
  "hsl": {
    "h": 287.317,
    "s": 68.715,
    "l": 35.098
  },
  "oklch": {
    "l": 0.44576,
    "c": 0.19259,
    "h": 317.7
  },
  "luminance": 0.07425
}

Semantic roles & 50–950 ramp

primary
#7D1C97
secondary
#66C14E
accent
#EC3C61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D1C97

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

Preview Lab → · Contrast checker → · Palette generator →

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