#7C1A97#7C1A97

#7C1A97 is a dark, vivid purple. Relative luminance 0.073; OKLCH L 44.3% C 0.194 H 317.4°. Best body text is #FFFFFF at 8.57:1 contrast (WCAG AA passes).

Color values

HEX#7C1A97
RGBrgb(124, 26, 151)
HSLhsl(287, 71%, 35%)
HSVhsv(287, 83%, 59%)
CMYKcmyk(17.9%, 82.8%, 0%, 40.8%)
CIE-LABlab(32.39, 57.15, -46.60)
CIE-LCHlch(32.39, 73.74, 320.81°)
OKLaboklab(44.29% 0.1428 -0.1313)
OKLCHoklch(44.29% 0.194 317.4)
XYZxyz(14.2667, 7.2589, 29.9218)
Luminance0.0726 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C1A97 #35971A
analogous
#3E1A97 #7C1A97 #971A74
triadic
#7C1A97 #977C1A #1A977C
tetradic
#7C1A97 #973E1A #35971A #1A7497
square
#7C1A97 #973E1A #35971A #1A7497
split-complementary
#7C1A97 #74971A #1A973E
monochromatic
#26082F #511163 #7C1A97 #A723CB #C04BE0

Accessibility & contrast

On white

8.57
#7C1A97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.45
#7C1A97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C1A97
8.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C1A97#FFFFFF#000000##FFFFFF
##7C1A971.008.572.458.57
#FFFFFF8.571.0021.001.00
#0000002.4521.001.0021.00
##FFFFFF8.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00469A
Deuteranopia (green-blind)
#1D4F94
Tritanopia (blue-blind)
#7B385A
Achromatopsia (no color)
#4C4C4C

Design tokens & code

CSS
--color: #7c1a97;
/* rgb */ color: rgb(124, 26, 151);
/* oklch */ color: oklch(44.3% 0.194 317.4);
Tailwind
colors: {
  custom: {
    50: '#a665b6',
    500: '#7c1a97',
    950: '#000000',
  },
}
SCSS
$custom: #7c1a97;
$custom-light: #a665b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c1a97",
  "rgb": {
    "r": 124,
    "g": 26,
    "b": 151
  },
  "hsl": {
    "h": 287.04,
    "s": 70.621,
    "l": 34.706
  },
  "oklch": {
    "l": 0.44285,
    "c": 0.19398,
    "h": 317.4
  },
  "luminance": 0.07258
}

Semantic roles & 50–950 ramp

primary
#7C1A97
secondary
#65C24B
accent
#ED3A61
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7C1A97

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

Preview Lab → · Contrast checker → · Palette generator →

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