#7D1877#7D1877

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

Color values

HEX#7D1877
RGBrgb(125, 24, 119)
HSLhsl(304, 68%, 29%)
HSVhsv(304, 81%, 49%)
CMYKcmyk(0%, 80.8%, 4.8%, 51%)
CIE-LABlab(30.27, 52.19, -30.06)
CIE-LCHlch(30.27, 60.23, 330.05°)
OKLaboklab(42.15% 0.1486 -0.083)
OKLCHoklch(42.15% 0.17 330.8)
XYZxyz(12.1138, 6.3461, 18.0361)
Luminance0.0635 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1877 #187D1E
analogous
#51187D #7D1877 #7D1845
triadic
#7D1877 #777D18 #18777D
tetradic
#7D1877 #7D5118 #187D1E #18457D
square
#7D1877 #7D5118 #187D1E #18457D
split-complementary
#7D1877 #457D18 #187D51
monochromatic
#1A0518 #4A0E46 #7D1877 #B022A8 #D937CF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7D1877#FFFFFF#000000##FFFFFF
##7D18771.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)
#0A3F79
Deuteranopia (green-blind)
#394C75
Tritanopia (blue-blind)
#822647
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7d1877;
/* rgb */ color: rgb(125, 24, 119);
/* oklch */ color: oklch(42.2% 0.170 330.8);
Tailwind
colors: {
  custom: {
    50: '#a6629e',
    500: '#7d1877',
    950: '#000000',
  },
}
SCSS
$custom: #7d1877;
$custom-light: #a6629e;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1877",
  "rgb": {
    "r": 125,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 303.564,
    "s": 67.785,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42151,
    "c": 0.1702,
    "h": 330.8
  },
  "luminance": 0.06345
}

Semantic roles & 50–950 ramp

primary
#7D1877
secondary
#3FB246
accent
#EB473D
background
#FAF6F9
surface
#F4EBF2
border
#CEC6CC
text
#10060E
muted
#7F7A7E

Preview Lab

Preview with #7D1877

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

Preview Lab → · Contrast checker → · Palette generator →

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