#7C1B8A#7C1B8A

#7C1B8A is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.4% C 0.182 H 322.2°. Best body text is #FFFFFF at 8.82:1 contrast (WCAG AA passes).

Color values

HEX#7C1B8A
RGBrgb(124, 27, 138)
HSLhsl(292, 67%, 32%)
HSVhsv(292, 80%, 54%)
CMYKcmyk(10.1%, 80.4%, 0%, 45.9%)
CIE-LABlab(31.59, 54.40, -39.88)
CIE-LCHlch(31.59, 67.45, 323.75°)
OKLaboklab(43.44% 0.1439 -0.1116)
OKLCHoklch(43.44% 0.182 322.2)
XYZxyz(13.2911, 6.9047, 24.6725)
Luminance0.0690 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1B8A #298A1B
analogous
#441B8A #7C1B8A #8A1B61
triadic
#7C1B8A #8A7C1B #1B8A7C
tetradic
#7C1B8A #8A441B #298A1B #1B618A
square
#7C1B8A #8A441B #298A1B #1B618A
split-complementary
#7C1B8A #618A1B #1B8A44
monochromatic
#200724 #4E1157 #7C1B8A #AA25BD #C845DB

Accessibility & contrast

On white

8.82
#7C1B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.38
#7C1B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1B8A
8.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1B8A#FFFFFF#000000##FFFFFF
##7C1B8A1.008.822.388.82
#FFFFFF8.821.0021.001.00
#0000002.3821.001.0021.00
##FFFFFF8.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00438D
Deuteranopia (green-blind)
#2C4E88
Tritanopia (blue-blind)
#7D3253
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c1b8a;
/* rgb */ color: rgb(124, 27, 138);
/* oklch */ color: oklch(43.4% 0.182 322.2);
Tailwind
colors: {
  custom: {
    50: '#a664ad',
    500: '#7c1b8a',
    950: '#000000',
  },
}
SCSS
$custom: #7c1b8a;
$custom-light: #a664ad;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1b8a",
  "rgb": {
    "r": 124,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 292.432,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.43435,
    "c": 0.18214,
    "h": 322.2
  },
  "luminance": 0.06904
}

Semantic roles & 50–950 ramp

primary
#7C1B8A
secondary
#54BC45
accent
#EA3E53
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C1B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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