#7D197F#7D197F

#7D197F is a dark, vivid purple. Relative luminance 0.066; OKLCH L 42.7% C 0.176 H 327.2°. Best body text is #FFFFFF at 9.06:1 contrast (WCAG AA passes).

Color values

HEX#7D197F
RGBrgb(125, 25, 127)
HSLhsl(299, 67%, 30%)
HSVhsv(299, 80%, 50%)
CMYKcmyk(1.6%, 80.3%, 0%, 50.2%)
CIE-LABlab(30.85, 53.24, -34.19)
CIE-LCHlch(30.85, 63.27, 327.29°)
OKLaboklab(42.72% 0.1476 -0.095)
OKLCHoklch(42.72% 0.176 327.2)
XYZxyz(12.6356, 6.5885, 20.6807)
Luminance0.0659 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D197F #1B7F19
analogous
#4A197F #7D197F #7F194E
triadic
#7D197F #7F7D19 #197F7D
tetradic
#7D197F #7F4A19 #1B7F19 #194E7F
square
#7D197F #7F4A19 #1B7F19 #194E7F
split-complementary
#7D197F #4E7F19 #197F4A
monochromatic
#19051A #4B0F4C #7D197F #AF23B2 #D53AD8

Accessibility & contrast

On white

9.06
#7D197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.32
#7D197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7D197F
9.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D197F#FFFFFF#000000##FFFFFF
##7D197F1.009.062.329.06
#FFFFFF9.061.0021.001.00
#0000002.3221.001.0021.00
##FFFFFF9.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004182
Deuteranopia (green-blind)
#354D7D
Tritanopia (blue-blind)
#812B4C
Achromatopsia (no color)
#494949

Design tokens & code

CSS
--color: #7d197f;
/* rgb */ color: rgb(125, 25, 127);
/* oklch */ color: oklch(42.7% 0.176 327.2);
Tailwind
colors: {
  custom: {
    50: '#a663a4',
    500: '#7d197f',
    950: '#000000',
  },
}
SCSS
$custom: #7d197f;
$custom-light: #a663a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d197f",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 298.824,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.4272,
    "c": 0.17551,
    "h": 327.2
  },
  "luminance": 0.06588
}

Semantic roles & 50–950 ramp

primary
#7D197F
secondary
#43B341
accent
#EA3E41
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D197F

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

Preview Lab → · Contrast checker → · Palette generator →

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