#7D197C#7D197C

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

Color values

HEX#7D197C
RGBrgb(125, 25, 124)
HSLhsl(301, 67%, 29%)
HSVhsv(301, 80%, 49%)
CMYKcmyk(0%, 80%, 0.8%, 51%)
CIE-LABlab(30.67, 52.73, -32.59)
CIE-LCHlch(30.67, 61.99, 328.28°)
OKLaboklab(42.53% 0.1477 -0.0903)
OKLCHoklch(42.53% 0.173 328.6)
XYZxyz(12.4430, 6.5114, 19.6663)
Luminance0.0651 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D197C #197D1A
analogous
#4C197D #7D197C #7D194A
triadic
#7D197C #7C7D19 #197C7D
tetradic
#7D197C #7D4C19 #197D1A #194A7D
square
#7D197C #7D4C19 #197D1A #194A7D
split-complementary
#7D197C #4A7D19 #197D4C
monochromatic
#1A0519 #4A0F49 #7D197C #B023AF #D739D6

Accessibility & contrast

On white

9.12
#7D197C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.30
#7D197C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D197C
9.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D197C#FFFFFF#000000##FFFFFF
##7D197C1.009.122.309.12
#FFFFFF9.121.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#01407F
Deuteranopia (green-blind)
#374D7A
Tritanopia (blue-blind)
#812A4A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d197c;
/* rgb */ color: rgb(125, 25, 124);
/* oklch */ color: oklch(42.5% 0.173 328.6);
Tailwind
colors: {
  custom: {
    50: '#a663a2',
    500: '#7d197c',
    950: '#000000',
  },
}
SCSS
$custom: #7d197c;
$custom-light: #a663a2;
$custom-dark: #000000;
JSON
{
  "hex": "#7d197c",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 124
  },
  "hsl": {
    "h": 300.6,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4253,
    "c": 0.17313,
    "h": 328.6
  },
  "luminance": 0.0651
}

Semantic roles & 50–950 ramp

primary
#7D197C
secondary
#40B142
accent
#EA403E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D197C

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

Preview Lab → · Contrast checker → · Palette generator →

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