#7C1B8D#7C1B8D

#7C1B8D is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.185 H 321.0°. Best body text is #FFFFFF at 8.76:1 contrast (WCAG AA passes).

Color values

HEX#7C1B8D
RGBrgb(124, 27, 141)
HSLhsl(291, 68%, 33%)
HSVhsv(291, 81%, 55%)
CMYKcmyk(12.1%, 80.9%, 0%, 44.7%)
CIE-LABlab(31.79, 54.96, -41.41)
CIE-LCHlch(31.79, 68.81, 323.00°)
OKLaboklab(43.64% 0.1436 -0.1161)
OKLCHoklch(43.64% 0.185 321)
XYZxyz(13.5113, 6.9928, 25.8322)
Luminance0.0699 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B8D #2C8D1B
analogous
#431B8D #7C1B8D #8D1B65
triadic
#7C1B8D #8D7C1B #1B8D7C
tetradic
#7C1B8D #8D431B #2C8D1B #1B658D
square
#7C1B8D #8D431B #2C8D1B #1B658D
split-complementary
#7C1B8D #658D1B #1B8D43
monochromatic
#220726 #4F115A #7C1B8D #A925C0 #C547DC

Accessibility & contrast

On white

8.76
#7C1B8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.40
#7C1B8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1B8D
8.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B8D#FFFFFF#000000##FFFFFF
##7C1B8D1.008.762.408.76
#FFFFFF8.761.0021.001.00
#0000002.4021.001.0021.00
##FFFFFF8.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004490
Deuteranopia (green-blind)
#2A4E8A
Tritanopia (blue-blind)
#7D3354
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c1b8d;
/* rgb */ color: rgb(124, 27, 141);
/* oklch */ color: oklch(43.6% 0.185 321.0);
Tailwind
colors: {
  custom: {
    50: '#a664af',
    500: '#7c1b8d',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b8d;
$custom-light: #a664af;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b8d",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 141
  },
  "hsl": {
    "h": 291.053,
    "s": 67.857,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43642,
    "c": 0.18465,
    "h": 321
  },
  "luminance": 0.06992
}

Semantic roles & 50–950 ramp

primary
#7C1B8D
secondary
#58BD46
accent
#EB3D57
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1B8D

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

Preview Lab → · Contrast checker → · Palette generator →

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