#7D1F80#7D1F80

#7D1F80 is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.3% C 0.170 H 326.7°. Best body text is #FFFFFF at 8.83:1 contrast (WCAG AA passes).

Color values

HEX#7D1F80
RGBrgb(125, 31, 128)
HSLhsl(298, 61%, 31%)
HSVhsv(298, 76%, 50%)
CMYKcmyk(2.3%, 75.8%, 0%, 49.8%)
CIE-LABlab(31.58, 51.51, -33.66)
CIE-LCHlch(31.58, 61.53, 326.84°)
OKLaboklab(43.26% 0.1422 -0.0935)
OKLCHoklch(43.26% 0.17 326.7)
XYZxyz(12.8435, 6.8993, 21.0731)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F80 #22801F
analogous
#4C1F80 #7D1F80 #801F52
triadic
#7D1F80 #807D1F #1F807D
tetradic
#7D1F80 #804C1F #22801F #1F5280
square
#7D1F80 #804C1F #22801F #1F5280
split-complementary
#7D1F80 #52801F #1F804C
monochromatic
#1D071D #4D134F #7D1F80 #AD2BB1 #CE47D2

Accessibility & contrast

On white

8.83
#7D1F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7D1F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F80
8.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F80#FFFFFF#000000##FFFFFF
##7D1F801.008.832.388.83
#FFFFFF8.831.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#054383
Deuteranopia (green-blind)
#374E7E
Tritanopia (blue-blind)
#812F4E
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1f80;
/* rgb */ color: rgb(125, 31, 128);
/* oklch */ color: oklch(43.3% 0.170 326.7);
Tailwind
colors: {
  custom: {
    50: '#a666a5',
    500: '#7d1f80',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f80;
$custom-light: #a666a5;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f80",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 298.144,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.43256,
    "c": 0.17017,
    "h": 326.7
  },
  "luminance": 0.06898
}

Semantic roles & 50–950 ramp

primary
#7D1F80
secondary
#4BB348
accent
#E44449
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F80

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

Preview Lab → · Contrast checker → · Palette generator →

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