#7D1F7B#7D1F7B

#7D1F7B is a dark, vivid purple. Relative luminance 0.068; OKLCH L 42.9% C 0.166 H 328.9°. Best body text is #FFFFFF at 8.92:1 contrast (WCAG AA passes).

Color values

HEX#7D1F7B
RGBrgb(125, 31, 123)
HSLhsl(301, 60%, 31%)
HSVhsv(301, 75%, 49%)
CMYKcmyk(0%, 75.2%, 1.6%, 51%)
CIE-LABlab(31.28, 50.63, -30.99)
CIE-LCHlch(31.28, 59.36, 328.53°)
OKLaboklab(42.95% 0.1422 -0.0857)
OKLCHoklch(42.95% 0.166 328.9)
XYZxyz(12.5225, 6.7709, 19.3824)
Luminance0.0677 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F7B #1F7D21
analogous
#501F7D #7D1F7B #7D1F4C
triadic
#7D1F7B #7B7D1F #1F7B7D
tetradic
#7D1F7B #7D501F #1F7D21 #1F4C7D
square
#7D1F7B #7D501F #1F7D21 #1F4C7D
split-complementary
#7D1F7B #4C7D1F #1F7D50
monochromatic
#1B071A #4C134B #7D1F7B #AE2BAB #D145CE

Accessibility & contrast

On white

8.92
#7D1F7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7D1F7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F7B
8.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F7B#FFFFFF#000000##FFFFFF
##7D1F7B1.008.922.358.92
#FFFFFF8.921.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#10427E
Deuteranopia (green-blind)
#3A4E79
Tritanopia (blue-blind)
#812D4B
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7d1f7b;
/* rgb */ color: rgb(125, 31, 123);
/* oklch */ color: oklch(42.9% 0.166 328.9);
Tailwind
colors: {
  custom: {
    50: '#a665a1',
    500: '#7d1f7b',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f7b;
$custom-light: #a665a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f7b",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 123
  },
  "hsl": {
    "h": 301.277,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42948,
    "c": 0.16606,
    "h": 328.9
  },
  "luminance": 0.0677
}

Semantic roles & 50–950 ramp

primary
#7D1F7B
secondary
#48B04A
accent
#E34844
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D1F7B

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

Preview Lab → · Contrast checker → · Palette generator →

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