#7C197B#7C197B

#7C197B is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.172 H 328.5°. Best body text is #FFFFFF at 9.20:1 contrast (WCAG AA passes).

Color values

HEX#7C197B
RGBrgb(124, 25, 123)
HSLhsl(301, 66%, 29%)
HSVhsv(301, 80%, 49%)
CMYKcmyk(0%, 79.8%, 0.8%, 51.4%)
CIE-LABlab(30.43, 52.34, -32.35)
CIE-LCHlch(30.43, 61.53, 328.28°)
OKLaboklab(42.31% 0.1466 -0.0897)
OKLCHoklch(42.31% 0.172 328.5)
XYZxyz(12.2348, 6.4113, 19.3282)
Luminance0.0641 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C197B #197C1A
analogous
#4C197C #7C197B #7C194A
triadic
#7C197B #7B7C19 #197B7C
tetradic
#7C197B #7C4C19 #197C1A #194A7C
square
#7C197B #7C4C19 #197C1A #194A7C
split-complementary
#7C197B #4A7C19 #197C4C
monochromatic
#190519 #490F48 #7C197B #AF23AE #D738D5

Accessibility & contrast

On white

9.20
#7C197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7C197B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C197B
9.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C197B#FFFFFF#000000##FFFFFF
##7C197B1.009.202.289.20
#FFFFFF9.201.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#013F7E
Deuteranopia (green-blind)
#364C79
Tritanopia (blue-blind)
#80294A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7c197b;
/* rgb */ color: rgb(124, 25, 123);
/* oklch */ color: oklch(42.3% 0.172 328.5);
Tailwind
colors: {
  custom: {
    50: '#a563a1',
    500: '#7c197b',
    950: '#000000',
  },
}
SCSS
$custom: #7c197b;
$custom-light: #a563a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c197b",
  "rgb": {
    "r": 124,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 300.606,
    "s": 66.443,
    "l": 29.216
  },
  "oklch": {
    "l": 0.42305,
    "c": 0.17186,
    "h": 328.5
  },
  "luminance": 0.0641
}

Semantic roles & 50–950 ramp

primary
#7C197B
secondary
#40B042
accent
#E9403E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7C197B

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

Preview Lab → · Contrast checker → · Palette generator →

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