#7D1C8C#7D1C8C

#7D1C8C is a dark, vivid purple. Relative luminance 0.071; OKLCH L 43.8% C 0.183 H 321.8°. Best body text is #FFFFFF at 8.69:1 contrast (WCAG AA passes).

Color values

HEX#7D1C8C
RGBrgb(125, 28, 140)
HSLhsl(292, 67%, 33%)
HSVhsv(292, 80%, 55%)
CMYKcmyk(10.7%, 80%, 0%, 45.1%)
CIE-LABlab(32.00, 54.66, -40.45)
CIE-LCHlch(32.00, 68.00, 323.50°)
OKLaboklab(43.8% 0.1441 -0.1133)
OKLCHoklch(43.8% 0.183 321.8)
XYZxyz(13.6058, 7.0847, 25.4567)
Luminance0.0708 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D1C8C #2B8C1C
analogous
#451C8C #7D1C8C #8C1C63
triadic
#7D1C8C #8C7D1C #1C8C7D
tetradic
#7D1C8C #8C451C #2B8C1C #1C638C
square
#7D1C8C #8C451C #2B8C1C #1C638C
split-complementary
#7D1C8C #638C1C #1C8C45
monochromatic
#220826 #4F1259 #7D1C8C #AB26BF #C748DA

Accessibility & contrast

On white

8.69
#7D1C8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.42
#7D1C8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D1C8C
8.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D1C8C#FFFFFF#000000##FFFFFF
##7D1C8C1.008.692.428.69
#FFFFFF8.691.0021.001.00
#0000002.4221.001.0021.00
##FFFFFF8.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00448F
Deuteranopia (green-blind)
#2C4F8A
Tritanopia (blue-blind)
#7E3354
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7d1c8c;
/* rgb */ color: rgb(125, 28, 140);
/* oklch */ color: oklch(43.8% 0.183 321.8);
Tailwind
colors: {
  custom: {
    50: '#a665ae',
    500: '#7d1c8c',
    950: '#000000',
  },
}
SCSS
$custom: #7d1c8c;
$custom-light: #a665ae;
$custom-dark: #000000;
JSON
{
  "hex": "#7d1c8c",
  "rgb": {
    "r": 125,
    "g": 28,
    "b": 140
  },
  "hsl": {
    "h": 291.964,
    "s": 66.667,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43801,
    "c": 0.18327,
    "h": 321.8
  },
  "luminance": 0.07084
}

Semantic roles & 50–950 ramp

primary
#7D1C8C
secondary
#57BC48
accent
#EA3E55
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7D1C8C

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

Preview Lab → · Contrast checker → · Palette generator →

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