#7C197D#7C197D

#7C197D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.4% C 0.173 H 327.7°. Best body text is #FFFFFF at 9.16:1 contrast (WCAG AA passes).

Color values

HEX#7C197D
RGBrgb(124, 25, 125)
HSLhsl(299, 67%, 29%)
HSVhsv(299, 80%, 49%)
CMYKcmyk(0.8%, 80%, 0%, 51%)
CIE-LABlab(30.55, 52.68, -33.42)
CIE-LCHlch(30.55, 62.39, 327.61°)
OKLaboklab(42.43% 0.1466 -0.0928)
OKLCHoklch(42.43% 0.173 327.7)
XYZxyz(12.3613, 6.4619, 19.9943)
Luminance0.0646 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C197D #1A7D19
analogous
#4A197D #7C197D #7D194C
triadic
#7C197D #7D7C19 #197D7C
tetradic
#7C197D #7D4A19 #1A7D19 #194C7D
square
#7C197D #7D4A19 #1A7D19 #194C7D
split-complementary
#7C197D #4C7D19 #197D4A
monochromatic
#19051A #490F4A #7C197D #AF23B0 #D639D7

Accessibility & contrast

On white

9.16
#7C197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.29
#7C197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C197D
9.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C197D#FFFFFF#000000##FFFFFF
##7C197D1.009.162.299.16
#FFFFFF9.161.0021.001.00
#0000002.2921.001.0021.00
##FFFFFF9.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#354C7B
Tritanopia (blue-blind)
#802A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c197d;
/* rgb */ color: rgb(124, 25, 125);
/* oklch */ color: oklch(42.4% 0.173 327.7);
Tailwind
colors: {
  custom: {
    50: '#a563a3',
    500: '#7c197d',
    950: '#000000',
  },
}
SCSS
$custom: #7c197d;
$custom-light: #a563a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c197d",
  "rgb": {
    "r": 124,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 299.4,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42431,
    "c": 0.17345,
    "h": 327.7
  },
  "luminance": 0.06461
}

Semantic roles & 50–950 ramp

primary
#7C197D
secondary
#42B140
accent
#EA3E40
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C197D

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

Preview Lab → · Contrast checker → · Palette generator →

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