#7D1F74#7D1F74

#7D1F74 is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.5% C 0.160 H 332.2°. Best body text is #FFFFFF at 9.05:1 contrast (WCAG AA passes).

Color values

HEX#7D1F74
RGBrgb(125, 31, 116)
HSLhsl(306, 60%, 31%)
HSVhsv(306, 75%, 49%)
CMYKcmyk(0%, 75.2%, 7.2%, 51%)
CIE-LABlab(30.88, 49.45, -27.19)
CIE-LCHlch(30.88, 56.43, 331.19°)
OKLaboklab(42.54% 0.142 -0.0747)
OKLCHoklch(42.54% 0.16 332.2)
XYZxyz(12.0999, 6.6019, 17.1566)
Luminance0.0660 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1F74 #1F7D28
analogous
#571F7D #7D1F74 #7D1F45
triadic
#7D1F74 #747D1F #1F747D
tetradic
#7D1F74 #7D571F #1F7D28 #1F457D
square
#7D1F74 #7D571F #1F7D28 #1F457D
split-complementary
#7D1F74 #457D1F #1F7D57
monochromatic
#1B0719 #4C1346 #7D1F74 #AE2BA2 #D145C4

Accessibility & contrast

On white

9.05
#7D1F74 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7D1F74 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1F74
9.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1F74#FFFFFF#000000##FFFFFF
##7D1F741.009.052.329.05
#FFFFFF9.051.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#194076
Deuteranopia (green-blind)
#3D4D72
Tritanopia (blue-blind)
#832947
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d1f74;
/* rgb */ color: rgb(125, 31, 116);
/* oklch */ color: oklch(42.5% 0.160 332.2);
Tailwind
colors: {
  custom: {
    50: '#a6659c',
    500: '#7d1f74',
    950: '#000000',
  },
}
SCSS
$custom: #7d1f74;
$custom-light: #a6659c;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1f74",
  "rgb": {
    "r": 125,
    "g": 31,
    "b": 116
  },
  "hsl": {
    "h": 305.745,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.42535,
    "c": 0.16047,
    "h": 332.2
  },
  "luminance": 0.06601
}

Semantic roles & 50–950 ramp

primary
#7D1F74
secondary
#48B052
accent
#E35444
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1F74

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

Preview Lab → · Contrast checker → · Palette generator →

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