#7D1E97#7D1E97

#7D1E97 is a dark, vivid purple. Relative luminance 0.075; OKLCH L 44.7% C 0.191 H 317.6°. Best body text is #FFFFFF at 8.38:1 contrast (WCAG AA passes).

Color values

HEX#7D1E97
RGBrgb(125, 30, 151)
HSLhsl(287, 67%, 35%)
HSVhsv(287, 80%, 59%)
CMYKcmyk(17.2%, 80.1%, 0%, 40.8%)
CIE-LABlab(32.97, 56.13, -45.65)
CIE-LCHlch(32.97, 72.35, 320.88°)
OKLaboklab(44.73% 0.1409 -0.1285)
OKLCHoklch(44.73% 0.191 317.6)
XYZxyz(14.5068, 7.5235, 29.9602)
Luminance0.0752 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1E97 #38971E
analogous
#401E97 #7D1E97 #971E75
triadic
#7D1E97 #977D1E #1E977D
tetradic
#7D1E97 #97401E #38971E #1E7597
square
#7D1E97 #97401E #38971E #1E7597
split-complementary
#7D1E97 #75971E #1E9740
monochromatic
#280A31 #531464 #7D1E97 #A728CA #BF53DD

Accessibility & contrast

On white

8.38
#7D1E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.50
#7D1E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1E97
8.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1E97#FFFFFF#000000##FFFFFF
##7D1E971.008.382.508.38
#FFFFFF8.381.0021.001.00
#0000002.5021.001.0021.00
##FFFFFF8.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489A
Deuteranopia (green-blind)
#225094
Tritanopia (blue-blind)
#7C3A5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1e97;
/* rgb */ color: rgb(125, 30, 151);
/* oklch */ color: oklch(44.7% 0.191 317.6);
Tailwind
colors: {
  custom: {
    50: '#a766b6',
    500: '#7d1e97',
    950: '#000000',
  },
}
SCSS
$custom: #7d1e97;
$custom-light: #a766b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1e97",
  "rgb": {
    "r": 125,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 287.107,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44726,
    "c": 0.19074,
    "h": 317.6
  },
  "luminance": 0.07523
}

Semantic roles & 50–950 ramp

primary
#7D1E97
secondary
#69C051
accent
#EA3E63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7D1E97

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

Preview Lab → · Contrast checker → · Palette generator →

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