#7C1F99#7C1F99

#7C1F99 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.191 H 316.4°. Best body text is #FFFFFF at 8.36:1 contrast (WCAG AA passes).

Color values

HEX#7C1F99
RGBrgb(124, 31, 153)
HSLhsl(286, 66%, 36%)
HSVhsv(286, 80%, 60%)
CMYKcmyk(19%, 79.7%, 0%, 40%)
CIE-LABlab(33.06, 56.01, -46.73)
CIE-LCHlch(33.06, 72.94, 320.16°)
OKLaboklab(44.8% 0.1385 -0.1318)
OKLCHoklch(44.8% 0.191 316.4)
XYZxyz(14.5510, 7.5656, 30.8246)
Luminance0.0756 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F99 #3C991F
analogous
#3F1F99 #7C1F99 #991F79
triadic
#7C1F99 #997C1F #1F997C
tetradic
#7C1F99 #993F1F #3C991F #1F7999
square
#7C1F99 #993F1F #3C991F #1F7999
split-complementary
#7C1F99 #79991F #1F993F
monochromatic
#2A0A33 #531566 #7C1F99 #A529CC #BD56DD

Accessibility & contrast

On white

8.36
#7C1F99 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7C1F99 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F99
8.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F99#FFFFFF#000000##FFFFFF
##7C1F991.008.362.518.36
#FFFFFF8.361.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00489C
Deuteranopia (green-blind)
#1E5096
Tritanopia (blue-blind)
#7A3B5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c1f99;
/* rgb */ color: rgb(124, 31, 153);
/* oklch */ color: oklch(44.8% 0.191 316.4);
Tailwind
colors: {
  custom: {
    50: '#a667b8',
    500: '#7c1f99',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f99;
$custom-light: #a667b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f99",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 153
  },
  "hsl": {
    "h": 285.738,
    "s": 66.304,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44803,
    "c": 0.19115,
    "h": 316.4
  },
  "luminance": 0.07565
}

Semantic roles & 50–950 ramp

primary
#7C1F99
secondary
#6DC054
accent
#E93F67
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C1F99

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

Preview Lab → · Contrast checker → · Palette generator →

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