#7D1F8A#7D1F8A

#7D1F8A is a dark, vivid purple. Relative luminance 0.072; OKLCH L 43.9% C 0.179 H 322.5°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7D1F8A
RGBrgb(125, 31, 138)
HSLhsl(293, 63%, 33%)
HSVhsv(293, 78%, 54%)
CMYKcmyk(9.4%, 77.5%, 0%, 45.9%)
CIE-LABlab(32.20, 53.32, -38.89)
CIE-LCHlch(32.20, 66.00, 323.90°)
OKLaboklab(43.9% 0.1416 -0.1087)
OKLCHoklch(43.9% 0.179 322.5)
XYZxyz(13.5344, 7.1757, 24.7120)
Luminance0.0717 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F8A #2C8A1F
analogous
#471F8A #7D1F8A #8A1F61
triadic
#7D1F8A #8A7D1F #1F8A7D
tetradic
#7D1F8A #8A471F #2C8A1F #1F618A
square
#7D1F8A #8A471F #2C8A1F #1F618A
split-complementary
#7D1F8A #618A1F #1F8A47
monochromatic
#220926 #501458 #7D1F8A #AA2ABC #C64CD7

Accessibility & contrast

On white

8.62
#7D1F8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7D1F8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F8A
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F8A#FFFFFF#000000##FFFFFF
##7D1F8A1.008.622.438.62
#FFFFFF8.621.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00458D
Deuteranopia (green-blind)
#304F88
Tritanopia (blue-blind)
#7F3454
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d1f8a;
/* rgb */ color: rgb(125, 31, 138);
/* oklch */ color: oklch(43.9% 0.179 322.5);
Tailwind
colors: {
  custom: {
    50: '#a666ad',
    500: '#7d1f8a',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f8a;
$custom-light: #a666ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f8a",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 138
  },
  "hsl": {
    "h": 292.71,
    "s": 63.314,
    "l": 33.137
  },
  "oklch": {
    "l": 0.43904,
    "c": 0.17856,
    "h": 322.5
  },
  "luminance": 0.07175
}

Semantic roles & 50–950 ramp

primary
#7D1F8A
secondary
#59BA4B
accent
#E64155
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1F8A

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

Preview Lab → · Contrast checker → · Palette generator →

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