#7D197B#7D197B

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

Color values

HEX#7D197B
RGBrgb(125, 25, 123)
HSLhsl(301, 67%, 29%)
HSVhsv(301, 80%, 49%)
CMYKcmyk(0%, 80%, 1.6%, 51%)
CIE-LABlab(30.61, 52.56, -32.06)
CIE-LCHlch(30.61, 61.56, 328.62°)
OKLaboklab(42.47% 0.1477 -0.0888)
OKLCHoklch(42.47% 0.172 329)
XYZxyz(12.3801, 6.4862, 19.3350)
Luminance0.0649 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7D197B #197D1B
analogous
#4D197D #7D197B #7D1949
triadic
#7D197B #7B7D19 #197B7D
tetradic
#7D197B #7D4D19 #197D1B #19497D
square
#7D197B #7D4D19 #197D1B #19497D
split-complementary
#7D197B #497D19 #197D4D
monochromatic
#1A0519 #4A0F49 #7D197B #B023AD #D739D4

Accessibility & contrast

On white

9.14
#7D197B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7D197B
9.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7D197B#FFFFFF#000000##FFFFFF
##7D197B1.009.142.309.14
#FFFFFF9.141.0021.001.00
#0000002.3021.001.0021.00
##FFFFFF9.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#03407E
Deuteranopia (green-blind)
#374D79
Tritanopia (blue-blind)
#81294A
Achromatopsia (no color)
#484848

Design tokens & code

CSS
--color: #7d197b;
/* rgb */ color: rgb(125, 25, 123);
/* oklch */ color: oklch(42.5% 0.172 329.0);
Tailwind
colors: {
  custom: {
    50: '#a663a1',
    500: '#7d197b',
    950: '#000000',
  },
}
SCSS
$custom: #7d197b;
$custom-light: #a663a1;
$custom-dark: #000000;
JSON
{
  "hex": "#7d197b",
  "rgb": {
    "r": 125,
    "g": 25,
    "b": 123
  },
  "hsl": {
    "h": 301.2,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.42468,
    "c": 0.17235,
    "h": 329
  },
  "luminance": 0.06485
}

Semantic roles & 50–950 ramp

primary
#7D197B
secondary
#40B143
accent
#EA423E
background
#FAF6FA
surface
#F4EBF3
border
#CEC6CD
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7D197B

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

Preview Lab → · Contrast checker → · Palette generator →

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