#7C1B9F#7C1B9F

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

Color values

HEX#7C1B9F
RGBrgb(124, 27, 159)
HSLhsl(284, 71%, 36%)
HSVhsv(284, 83%, 62%)
CMYKcmyk(22%, 83%, 0%, 37.6%)
CIE-LABlab(33.08, 58.43, -50.36)
CIE-LCHlch(33.08, 77.14, 319.24°)
OKLaboklab(44.95% 0.1404 -0.1424)
OKLCHoklch(44.95% 0.2 314.6)
XYZxyz(14.9611, 7.5727, 33.4678)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B9F #3E9F1B
analogous
#3A1B9F #7C1B9F #9F1B80
triadic
#7C1B9F #9F7C1B #1B9F7C
tetradic
#7C1B9F #9F3A1B #3E9F1B #1B809F
square
#7C1B9F #9F3A1B #3E9F1B #1B809F
split-complementary
#7C1B9F #809F1B #1B9F3A
monochromatic
#2A0936 #53126B #7C1B9F #A524D3 #BC53E2

Accessibility & contrast

On white

8.35
#7C1B9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C1B9F
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B9F#FFFFFF#000000##FFFFFF
##7C1B9F1.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0049A2
Deuteranopia (green-blind)
#0E509C
Tritanopia (blue-blind)
#793C5F
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c1b9f;
/* rgb */ color: rgb(124, 27, 159);
/* oklch */ color: oklch(45.0% 0.200 314.6);
Tailwind
colors: {
  custom: {
    50: '#a765bc',
    500: '#7c1b9f',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b9f;
$custom-light: #a765bc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b9f",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 159
  },
  "hsl": {
    "h": 284.091,
    "s": 70.968,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44952,
    "c": 0.19997,
    "h": 314.6
  },
  "luminance": 0.07572
}

Semantic roles & 50–950 ramp

primary
#7C1B9F
secondary
#70C551
accent
#EE3A6A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100612
muted
#7F7A81

Preview Lab

Preview with #7C1B9F

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

Preview Lab → · Contrast checker → · Palette generator →

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