#7C1F8D#7C1F8D

#7C1F8D is a dark, vivid purple. Relative luminance 0.072; OKLCH L 44.0% C 0.181 H 320.9°. Best body text is #FFFFFF at 8.62:1 contrast (WCAG AA passes).

Color values

HEX#7C1F8D
RGBrgb(124, 31, 141)
HSLhsl(291, 64%, 34%)
HSVhsv(291, 78%, 55%)
CMYKcmyk(12.1%, 78%, 0%, 44.7%)
CIE-LABlab(32.23, 53.68, -40.70)
CIE-LCHlch(32.23, 67.37, 322.83°)
OKLaboklab(43.96% 0.1402 -0.1141)
OKLCHoklch(43.96% 0.181 320.9)
XYZxyz(13.6093, 7.1889, 25.8649)
Luminance0.0719 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F8D #308D1F
analogous
#451F8D #7C1F8D #8D1F67
triadic
#7C1F8D #8D7C1F #1F8D7C
tetradic
#7C1F8D #8D451F #308D1F #1F678D
square
#7C1F8D #8D451F #308D1F #1F678D
split-complementary
#7C1F8D #678D1F #1F8D45
monochromatic
#240929 #50145B #7C1F8D #A82ABF #C34ED8

Accessibility & contrast

On white

8.62
#7C1F8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.44
#7C1F8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F8D
8.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F8D#FFFFFF#000000##FFFFFF
##7C1F8D1.008.622.448.62
#FFFFFF8.621.0021.001.00
#0000002.4421.001.0021.00
##FFFFFF8.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004590
Deuteranopia (green-blind)
#2C4F8B
Tritanopia (blue-blind)
#7D3655
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c1f8d;
/* rgb */ color: rgb(124, 31, 141);
/* oklch */ color: oklch(44.0% 0.181 320.9);
Tailwind
colors: {
  custom: {
    50: '#a666af',
    500: '#7c1f8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f8d;
$custom-light: #a666af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f8d",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 141
  },
  "hsl": {
    "h": 290.727,
    "s": 63.953,
    "l": 33.725
  },
  "oklch": {
    "l": 0.43955,
    "c": 0.18071,
    "h": 320.9
  },
  "luminance": 0.07188
}

Semantic roles & 50–950 ramp

primary
#7C1F8D
secondary
#5EBB4D
accent
#E7415B
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1F8D

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

Preview Lab → · Contrast checker → · Palette generator →

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