#7D197E#7D197E

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

Color values

HEX#7D197E
RGBrgb(125, 25, 126)
HSLhsl(299, 67%, 30%)
HSVhsv(299, 80%, 49%)
CMYKcmyk(0.8%, 80.2%, 0%, 50.6%)
CIE-LABlab(30.79, 53.07, -33.66)
CIE-LCHlch(30.79, 62.84, 327.62°)
OKLaboklab(42.66% 0.1476 -0.0934)
OKLCHoklch(42.66% 0.175 327.7)
XYZxyz(12.5708, 6.5625, 20.3392)
Luminance0.0656 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D197E #1A7E19
analogous
#4B197E #7D197E #7E194D
triadic
#7D197E #7E7D19 #197E7D
tetradic
#7D197E #7E4B19 #1A7E19 #194D7E
square
#7D197E #7E4B19 #1A7E19 #194D7E
split-complementary
#7D197E #4D7E19 #197E4B
monochromatic
#19051A #4A0F4B #7D197E #B023B1 #D63AD8

Accessibility & contrast

On white

9.08
#7D197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D197E
9.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D197E#FFFFFF#000000##FFFFFF
##7D197E1.009.082.319.08
#FFFFFF9.081.0021.001.00
#0000002.3121.001.0021.00
##FFFFFF9.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#354D7C
Tritanopia (blue-blind)
#812B4B
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d197e;
/* rgb */ color: rgb(125, 25, 126);
/* oklch */ color: oklch(42.7% 0.175 327.7);
Tailwind
colors: {
  custom: {
    50: '#a663a4',
    500: '#7d197e',
    950: '#000000',
  },
}
SCSS
$custom: #7d197e;
$custom-light: #a663a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7d197e",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 299.406,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42656,
    "c": 0.17471,
    "h": 327.7
  },
  "luminance": 0.06562
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7D197E

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

Preview Lab → · Contrast checker → · Palette generator →

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