#7D1F97#7D1F97

#7D1F97 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.190 H 317.6°. Best body text is #FFFFFF at 8.35:1 contrast (WCAG AA passes).

Color values

HEX#7D1F97
RGBrgb(125, 31, 151)
HSLhsl(287, 66%, 36%)
HSVhsv(287, 79%, 59%)
CMYKcmyk(17.2%, 79.5%, 0%, 40.8%)
CIE-LABlab(33.08, 55.81, -45.47)
CIE-LCHlch(33.08, 71.99, 320.83°)
OKLaboklab(44.81% 0.1401 -0.128)
OKLCHoklch(44.81% 0.19 317.6)
XYZxyz(14.5325, 7.5750, 29.9688)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F97 #39971F
analogous
#411F97 #7D1F97 #971F75
triadic
#7D1F97 #977D1F #1F977D
tetradic
#7D1F97 #97411F #39971F #1F7597
square
#7D1F97 #97411F #39971F #1F7597
split-complementary
#7D1F97 #75971F #1F9741
monochromatic
#290A31 #531564 #7D1F97 #A729CA #BF54DC

Accessibility & contrast

On white

8.35
#7D1F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1F97
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F97#FFFFFF#000000##FFFFFF
##7D1F971.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7d1f97;
/* rgb */ color: rgb(125, 31, 151);
/* oklch */ color: oklch(44.8% 0.190 317.6);
Tailwind
colors: {
  custom: {
    50: '#a767b6',
    500: '#7d1f97',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f97;
$custom-light: #a767b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f97",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 287,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.44805,
    "c": 0.18977,
    "h": 317.6
  },
  "luminance": 0.07574
}

Semantic roles & 50–950 ramp

primary
#7D1F97
secondary
#6ABF52
accent
#E93F64
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1F97

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

Preview Lab → · Contrast checker → · Palette generator →

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