#7D1F76#7D1F76

#7D1F76 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.162 H 331.3°. Best body text is #FFFFFF at 9.01:1 contrast (WCAG AA passes).

Color values

HEX#7D1F76
RGBrgb(125, 31, 118)
HSLhsl(304, 60%, 31%)
HSVhsv(304, 75%, 49%)
CMYKcmyk(0%, 75.2%, 5.6%, 51%)
CIE-LABlab(30.99, 49.78, -28.28)
CIE-LCHlch(30.99, 57.25, 330.39°)
OKLaboklab(42.65% 0.1421 -0.0779)
OKLCHoklch(42.65% 0.162 331.3)
XYZxyz(12.2174, 6.6489, 17.7759)
Luminance0.0665 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F76 #1F7D26
analogous
#551F7D #7D1F76 #7D1F47
triadic
#7D1F76 #767D1F #1F767D
tetradic
#7D1F76 #7D551F #1F7D26 #1F477D
square
#7D1F76 #7D551F #1F7D26 #1F477D
split-complementary
#7D1F76 #477D1F #1F7D55
monochromatic
#1B0719 #4C1348 #7D1F76 #AE2BA4 #D145C7

Accessibility & contrast

On white

9.01
#7D1F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.33
#7D1F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F76
9.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F76#FFFFFF#000000##FFFFFF
##7D1F761.009.012.339.01
#FFFFFF9.011.0021.001.00
#0000002.3321.001.0021.00
##FFFFFF9.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#174178
Deuteranopia (green-blind)
#3C4E74
Tritanopia (blue-blind)
#822A48
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1f76;
/* rgb */ color: rgb(125, 31, 118);
/* oklch */ color: oklch(42.7% 0.162 331.3);
Tailwind
colors: {
  custom: {
    50: '#a6659e',
    500: '#7d1f76',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f76;
$custom-light: #a6659e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f76",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 304.468,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42651,
    "c": 0.16205,
    "h": 331.3
  },
  "luminance": 0.06648
}

Semantic roles & 50–950 ramp

primary
#7D1F76
secondary
#48B04F
accent
#E35044
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1F76

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

Preview Lab → · Contrast checker → · Palette generator →

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