#7D1F8F#7D1F8F

#7D1F8F is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.2% C 0.183 H 320.5°. Best body text is #FFFFFF at 8.52:1 contrast (WCAG AA passes).

Color values

HEX#7D1F8F
RGBrgb(125, 31, 143)
HSLhsl(290, 64%, 34%)
HSVhsv(290, 78%, 56%)
CMYKcmyk(12.6%, 78.3%, 0%, 43.9%)
CIE-LABlab(32.53, 54.26, -41.45)
CIE-LCHlch(32.53, 68.28, 322.63°)
OKLaboklab(44.24% 0.1412 -0.1162)
OKLCHoklch(44.24% 0.183 320.5)
XYZxyz(13.9048, 7.3239, 26.6625)
Luminance0.0732 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F8F #318F1F
analogous
#451F8F #7D1F8F #8F1F69
triadic
#7D1F8F #8F7D1F #1F8F7D
tetradic
#7D1F8F #8F451F #318F1F #1F698F
square
#7D1F8F #8F451F #318F1F #1F698F
split-complementary
#7D1F8F #698F1F #1F8F45
monochromatic
#25092A #51145D #7D1F8F #A92AC1 #C34FD9

Accessibility & contrast

On white

8.52
#7D1F8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.46
#7D1F8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F8F
8.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F8F#FFFFFF#000000##FFFFFF
##7D1F8F1.008.522.468.52
#FFFFFF8.521.0021.001.00
#0000002.4621.001.0021.00
##FFFFFF8.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004692
Deuteranopia (green-blind)
#2B508C
Tritanopia (blue-blind)
#7E3656
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d1f8f;
/* rgb */ color: rgb(125, 31, 143);
/* oklch */ color: oklch(44.2% 0.183 320.5);
Tailwind
colors: {
  custom: {
    50: '#a666b0',
    500: '#7d1f8f',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f8f;
$custom-light: #a666b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f8f",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 143
  },
  "hsl": {
    "h": 290.357,
    "s": 64.368,
    "l": 34.118
  },
  "oklch": {
    "l": 0.44243,
    "c": 0.18284,
    "h": 320.5
  },
  "luminance": 0.07323
}

Semantic roles & 50–950 ramp

primary
#7D1F8F
secondary
#60BC4E
accent
#E7405B
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1F8F

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

Preview Lab → · Contrast checker → · Palette generator →

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