#7C1F9B#7C1F9B

#7C1F9B is a dark, vivid purple. Relative luminance 0.076; OKLCH L 45.0% C 0.193 H 315.7°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7C1F9B
RGBrgb(124, 31, 155)
HSLhsl(285, 67%, 36%)
HSVhsv(285, 80%, 61%)
CMYKcmyk(20%, 80%, 0%, 39.2%)
CIE-LABlab(33.20, 56.41, -47.72)
CIE-LCHlch(33.20, 73.88, 319.77°)
OKLaboklab(44.95% 0.1381 -0.1347)
OKLCHoklch(44.95% 0.193 315.7)
XYZxyz(14.7176, 7.6322, 31.7019)
Luminance0.0763 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1F9B #3E9B1F
analogous
#3E1F9B #7C1F9B #9B1F7C
triadic
#7C1F9B #9B7C1F #1F9B7C
tetradic
#7C1F9B #9B3E1F #3E9B1F #1F7C9B
square
#7C1F9B #9B3E1F #3E9B1F #1F7C9B
split-complementary
#7C1F9B #7C9B1F #1F9B3E
monochromatic
#2A0B35 #531568 #7C1F9B #A529CE #BC57DD

Accessibility & contrast

On white

8.31
#7C1F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7C1F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1F9B
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1F9B#FFFFFF#000000##FFFFFF
##7C1F9B1.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499E
Deuteranopia (green-blind)
#1B5098
Tritanopia (blue-blind)
#7A3C5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c1f9b;
/* rgb */ color: rgb(124, 31, 155);
/* oklch */ color: oklch(45.0% 0.193 315.7);
Tailwind
colors: {
  custom: {
    50: '#a667b9',
    500: '#7c1f9b',
    950: '#000000',
  },
}
SCSS
$custom: #7c1f9b;
$custom-light: #a667b9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1f9b",
  "rgb": {
    "r": 124,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 285,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.4495,
    "c": 0.19291,
    "h": 315.7
  },
  "luminance": 0.07632
}

Semantic roles & 50–950 ramp

primary
#7C1F9B
secondary
#70C155
accent
#EA3E69
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C1F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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