#7C1F9D#7C1F9D

#7C1F9D is a mid, vivid purple. Relative luminance 0.077; OKLCH L 45.1% C 0.195 H 315.0°. Best body text is #FFFFFF at 8.27:1 contrast (WCAG AA passes).

Color values

HEX#7C1F9D
RGBrgb(124, 31, 157)
HSLhsl(284, 67%, 37%)
HSVhsv(284, 80%, 62%)
CMYKcmyk(21%, 80.3%, 0%, 38.4%)
CIE-LABlab(33.35, 56.81, -48.70)
CIE-LCHlch(33.35, 74.83, 319.39°)
OKLaboklab(45.1% 0.1378 -0.1375)
OKLCHoklch(45.1% 0.195 315)
XYZxyz(14.8870, 7.6999, 32.5938)
Luminance0.0770 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F9D #409D1F
analogous
#3D1F9D #7C1F9D #9D1F7F
triadic
#7C1F9D #9D7C1F #1F9D7C
tetradic
#7C1F9D #9D3D1F #409D1F #1F7F9D
square
#7C1F9D #9D3D1F #409D1F #1F7F9D
split-complementary
#7C1F9D #7F9D1F #1F9D3D
monochromatic
#2B0B37 #54156A #7C1F9D #A429D0 #BB58DE

Accessibility & contrast

On white

8.27
#7C1F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7C1F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F9D
8.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F9D#FFFFFF#000000##FFFFFF
##7C1F9D1.008.272.548.27
#FFFFFF8.271.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A0
Deuteranopia (green-blind)
#18519A
Tritanopia (blue-blind)
#793D5E
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c1f9d;
/* rgb */ color: rgb(124, 31, 157);
/* oklch */ color: oklch(45.1% 0.195 315.0);
Tailwind
colors: {
  custom: {
    50: '#a667bb',
    500: '#7c1f9d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f9d;
$custom-light: #a667bb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f9d",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 284.286,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45097,
    "c": 0.19467,
    "h": 315
  },
  "luminance": 0.07699
}

Semantic roles & 50–950 ramp

primary
#7C1F9D
secondary
#72C256
accent
#EA3E6B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100712
muted
#7F7A81

Preview Lab

Preview with #7C1F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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