#7D1B72#7D1B72

#7D1B72 is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.1% C 0.163 H 333.2°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7D1B72
RGBrgb(125, 27, 114)
HSLhsl(307, 64%, 30%)
HSVhsv(307, 78%, 49%)
CMYKcmyk(0%, 78.4%, 8.8%, 51%)
CIE-LABlab(30.30, 50.46, -26.83)
CIE-LCHlch(30.30, 57.15, 332.00°)
OKLaboklab(42.08% 0.1458 -0.0737)
OKLCHoklch(42.08% 0.163 333.2)
XYZxyz(11.8867, 6.3598, 16.5178)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B72 #1B7D26
analogous
#571B7D #7D1B72 #7D1B41
triadic
#7D1B72 #727D1B #1B727D
tetradic
#7D1B72 #7D571B #1B7D26 #1B417D
square
#7D1B72 #7D571B #1B7D26 #1B417D
split-complementary
#7D1B72 #417D1B #1B7D57
monochromatic
#190517 #4B1044 #7D1B72 #AF26A0 #D53DC4

Accessibility & contrast

On white

9.24
#7D1B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7D1B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1B72
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B72#FFFFFF#000000##FFFFFF
##7D1B721.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#173E74
Deuteranopia (green-blind)
#3D4C70
Tritanopia (blue-blind)
#832645
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1b72;
/* rgb */ color: rgb(125, 27, 114);
/* oklch */ color: oklch(42.1% 0.163 333.2);
Tailwind
colors: {
  custom: {
    50: '#a6639b',
    500: '#7d1b72',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b72;
$custom-light: #a6639b;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b72",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 306.735,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42082,
    "c": 0.16337,
    "h": 333.2
  },
  "luminance": 0.06359
}

Semantic roles & 50–950 ramp

primary
#7D1B72
secondary
#43B14F
accent
#E75340
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1B72

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

Preview Lab → · Contrast checker → · Palette generator →

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