#7D1C8E#7D1C8E

#7D1C8E is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.9% C 0.185 H 321.0°. Best body text is #FFFFFF at 8.65:1 contrast (WCAG AA passes).

Color values

HEX#7D1C8E
RGBrgb(125, 28, 142)
HSLhsl(291, 67%, 33%)
HSVhsv(291, 80%, 56%)
CMYKcmyk(12%, 80.3%, 0%, 44.3%)
CIE-LABlab(32.13, 55.04, -41.47)
CIE-LCHlch(32.13, 68.91, 323.00°)
OKLaboklab(43.94% 0.1438 -0.1163)
OKLCHoklch(43.94% 0.185 321)
XYZxyz(13.7546, 7.1442, 26.2404)
Luminance0.0714 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C8E #2D8E1C
analogous
#441C8E #7D1C8E #8E1C66
triadic
#7D1C8E #8E7D1C #1C8E7D
tetradic
#7D1C8E #8E441C #2D8E1C #1C668E
square
#7D1C8E #8E441C #2D8E1C #1C668E
split-complementary
#7D1C8E #668E1C #1C8E44
monochromatic
#230828 #50125B #7D1C8E #AA26C1 #C549DB

Accessibility & contrast

On white

8.65
#7D1C8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.43
#7D1C8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C8E
8.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C8E#FFFFFF#000000##FFFFFF
##7D1C8E1.008.652.438.65
#FFFFFF8.651.0021.001.00
#0000002.4321.001.0021.00
##FFFFFF8.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004591
Deuteranopia (green-blind)
#2B4F8B
Tritanopia (blue-blind)
#7E3455
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7d1c8e;
/* rgb */ color: rgb(125, 28, 142);
/* oklch */ color: oklch(43.9% 0.185 321.0);
Tailwind
colors: {
  custom: {
    50: '#a665b0',
    500: '#7d1c8e',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c8e;
$custom-light: #a665b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c8e",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 142
  },
  "hsl": {
    "h": 291.053,
    "s": 67.059,
    "l": 33.333
  },
  "oklch": {
    "l": 0.43938,
    "c": 0.18495,
    "h": 321
  },
  "luminance": 0.07143
}

Semantic roles & 50–950 ramp

primary
#7D1C8E
secondary
#5ABD49
accent
#EA3E58
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1C8E

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

Preview Lab → · Contrast checker → · Palette generator →

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