#7C1E7D#7C1E7D

#7C1E7D is a dark, vivid purple. Relative luminance 0.067; OKLCH L 42.8% C 0.168 H 327.6°. Best body text is #FFFFFF at 8.98:1 contrast (WCAG AA passes).

Color values

HEX#7C1E7D
RGBrgb(124, 30, 125)
HSLhsl(299, 61%, 30%)
HSVhsv(299, 76%, 49%)
CMYKcmyk(0.8%, 76%, 0%, 51%)
CIE-LABlab(31.10, 51.09, -32.54)
CIE-LCHlch(31.10, 60.57, 327.51°)
OKLaboklab(42.83% 0.1421 -0.0902)
OKLCHoklch(42.83% 0.168 327.6)
XYZxyz(12.4779, 6.6952, 20.0332)
Luminance0.0669 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1E7D #1F7D1E
analogous
#4C1E7D #7C1E7D #7D1E4F
triadic
#7C1E7D #7D7C1E #1E7D7C
tetradic
#7C1E7D #7D4C1E #1F7D1E #1E4F7D
square
#7C1E7D #7D4C1E #1F7D1E #1E4F7D
split-complementary
#7C1E7D #4F7D1E #1E7D4C
monochromatic
#1A061A #4B124C #7C1E7D #AD2AAE #D043D2

Accessibility & contrast

On white

8.98
#7C1E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.34
#7C1E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1E7D
8.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1E7D#FFFFFF#000000##FFFFFF
##7C1E7D1.008.982.348.98
#FFFFFF8.981.0021.001.00
#0000002.3421.001.0021.00
##FFFFFF8.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#084180
Deuteranopia (green-blind)
#374D7B
Tritanopia (blue-blind)
#802D4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7c1e7d;
/* rgb */ color: rgb(124, 30, 125);
/* oklch */ color: oklch(42.8% 0.168 327.6);
Tailwind
colors: {
  custom: {
    50: '#a565a3',
    500: '#7c1e7d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1e7d;
$custom-light: #a565a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1e7d",
  "rgb": {
    "r": 124,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 299.368,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.42826,
    "c": 0.1683,
    "h": 327.6
  },
  "luminance": 0.06694
}

Semantic roles & 50–950 ramp

primary
#7C1E7D
secondary
#48B046
accent
#E44345
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C1E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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