#7D1F72#7D1F72

#7D1F72 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.4% C 0.159 H 333.2°. Best body text is #FFFFFF at 9.09:1 contrast (WCAG AA passes).

Color values

HEX#7D1F72
RGBrgb(125, 31, 114)
HSLhsl(307, 60%, 31%)
HSVhsv(307, 75%, 49%)
CMYKcmyk(0%, 75.2%, 8.8%, 51%)
CIE-LABlab(30.77, 49.12, -26.09)
CIE-LCHlch(30.77, 55.62, 332.02°)
OKLaboklab(42.42% 0.1419 -0.0716)
OKLCHoklch(42.42% 0.159 333.2)
XYZxyz(11.9848, 6.5559, 16.5505)
Luminance0.0655 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F72 #1F7D2A
analogous
#591F7D #7D1F72 #7D1F43
triadic
#7D1F72 #727D1F #1F727D
tetradic
#7D1F72 #7D591F #1F7D2A #1F437D
square
#7D1F72 #7D591F #1F7D2A #1F437D
split-complementary
#7D1F72 #437D1F #1F7D59
monochromatic
#1B0719 #4C1345 #7D1F72 #AE2B9F #D145C1

Accessibility & contrast

On white

9.09
#7D1F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7D1F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F72
9.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F72#FFFFFF#000000##FFFFFF
##7D1F721.009.092.319.09
#FFFFFF9.091.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B4074
Deuteranopia (green-blind)
#3E4D70
Tritanopia (blue-blind)
#832846
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d1f72;
/* rgb */ color: rgb(125, 31, 114);
/* oklch */ color: oklch(42.4% 0.159 333.2);
Tailwind
colors: {
  custom: {
    50: '#a6659b',
    500: '#7d1f72',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f72;
$custom-light: #a6659b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f72",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 307.021,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42421,
    "c": 0.1589,
    "h": 333.2
  },
  "luminance": 0.06555
}

Semantic roles & 50–950 ramp

primary
#7D1F72
secondary
#48B054
accent
#E35744
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1F72

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

Preview Lab → · Contrast checker → · Palette generator →

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