#7D197D#7D197D

#7D197D is a dark, vivid purple. Relative luminance 0.065; OKLCH L 42.6% C 0.174 H 328.1°. Best body text is #FFFFFF at 9.10:1 contrast (WCAG AA passes).

Color values

HEX#7D197D
RGBrgb(125, 25, 125)
HSLhsl(300, 67%, 29%)
HSVhsv(300, 80%, 49%)
CMYKcmyk(0%, 80%, 0%, 51%)
CIE-LABlab(30.73, 52.90, -33.13)
CIE-LCHlch(30.73, 62.41, 327.95°)
OKLaboklab(42.59% 0.1477 -0.0919)
OKLCHoklch(42.59% 0.174 328.1)
XYZxyz(12.5066, 6.5368, 20.0011)
Luminance0.0654 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D197D #197D19
analogous
#4B197D #7D197D #7D194B
triadic
#7D197D #7D7D19 #197D7D
tetradic
#7D197D #7D4B19 #197D19 #194B7D
square
#7D197D #7D4B19 #197D19 #194B7D
split-complementary
#7D197D #4B7D19 #197D4B
monochromatic
#1A051A #4A0F4A #7D197D #B023B0 #D739D7

Accessibility & contrast

On white

9.10
#7D197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.31
#7D197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D197D
9.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D197D#FFFFFF#000000##FFFFFF
##7D197D1.009.102.319.10
#FFFFFF9.101.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#364D7B
Tritanopia (blue-blind)
#812A4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d197d;
/* rgb */ color: rgb(125, 25, 125);
/* oklch */ color: oklch(42.6% 0.174 328.1);
Tailwind
colors: {
  custom: {
    50: '#a663a3',
    500: '#7d197d',
    950: '#000000',
  },
}
SCSS
$custom: #7d197d;
$custom-light: #a663a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7d197d",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 300,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42593,
    "c": 0.17392,
    "h": 328.1
  },
  "luminance": 0.06536
}

Semantic roles & 50–950 ramp

primary
#7D197D
secondary
#40B140
accent
#EA3E3E
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D197D

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

Preview Lab → · Contrast checker → · Palette generator →

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