#7D1B71#7D1B71

#7D1B71 is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.0% C 0.163 H 333.7°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7D1B71
RGBrgb(125, 27, 113)
HSLhsl(307, 64%, 30%)
HSVhsv(307, 78%, 49%)
CMYKcmyk(0%, 78.4%, 9.6%, 51%)
CIE-LABlab(30.25, 50.30, -26.28)
CIE-LCHlch(30.25, 56.75, 332.41°)
OKLaboklab(42.03% 0.1458 -0.0721)
OKLCHoklch(42.03% 0.163 333.7)
XYZxyz(11.8301, 6.3371, 16.2197)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1B71 #1B7D27
analogous
#581B7D #7D1B71 #7D1B40
triadic
#7D1B71 #717D1B #1B717D
tetradic
#7D1B71 #7D581B #1B7D27 #1B407D
square
#7D1B71 #7D581B #1B7D27 #1B407D
split-complementary
#7D1B71 #407D1B #1B7D58
monochromatic
#190517 #4B1044 #7D1B71 #AF269E #D53DC3

Accessibility & contrast

On white

9.26
#7D1B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D1B71
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1B71#FFFFFF#000000##FFFFFF
##7D1B711.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#183E73
Deuteranopia (green-blind)
#3D4C6F
Tritanopia (blue-blind)
#832545
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1b71;
/* rgb */ color: rgb(125, 27, 113);
/* oklch */ color: oklch(42.0% 0.163 333.7);
Tailwind
colors: {
  custom: {
    50: '#a6639a',
    500: '#7d1b71',
    950: '#000000',
  },
}
SCSS
$custom: #7d1b71;
$custom-light: #a6639a;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1b71",
  "rgb": {
    "r": 125,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 307.347,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42025,
    "c": 0.16262,
    "h": 333.7
  },
  "luminance": 0.06336
}

Semantic roles & 50–950 ramp

primary
#7D1B71
secondary
#43B150
accent
#E75540
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1B71

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

Preview Lab → · Contrast checker → · Palette generator →

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