#7D1F96#7D1F96

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

Color values

HEX#7D1F96
RGBrgb(125, 31, 150)
HSLhsl(287, 66%, 35%)
HSVhsv(287, 79%, 59%)
CMYKcmyk(16.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(33.01, 55.61, -44.97)
CIE-LCHlch(33.01, 71.52, 321.04°)
OKLaboklab(44.73% 0.1402 -0.1266)
OKLCHoklch(44.73% 0.189 317.9)
XYZxyz(14.4517, 7.5426, 29.5429)
Luminance0.0754 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F96 #38961F
analogous
#411F96 #7D1F96 #961F73
triadic
#7D1F96 #967D1F #1F967D
tetradic
#7D1F96 #96411F #38961F #1F7396
square
#7D1F96 #96411F #38961F #1F7396
split-complementary
#7D1F96 #73961F #1F9641
monochromatic
#280A31 #531563 #7D1F96 #A729C9 #BF54DC

Accessibility & contrast

On white

8.37
#7D1F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1F96
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F96#FFFFFF#000000##FFFFFF
##7D1F961.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#245093
Tritanopia (blue-blind)
#7C3A5A
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7d1f96;
/* rgb */ color: rgb(125, 31, 150);
/* oklch */ color: oklch(44.7% 0.189 317.9);
Tailwind
colors: {
  custom: {
    50: '#a767b5',
    500: '#7d1f96',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f96;
$custom-light: #a767b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f96",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 287.395,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.44733,
    "c": 0.1889,
    "h": 317.9
  },
  "luminance": 0.07542
}

Semantic roles & 50–950 ramp

primary
#7D1F96
secondary
#69BF52
accent
#E93F63
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7D1F96

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

Preview Lab → · Contrast checker → · Palette generator →

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