#7B197D#7B197D

#7B197D is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.3% C 0.173 H 327.2°. Best body text is #FFFFFF at 9.22:1 contrast (WCAG AA passes).

Color values

HEX#7B197D
RGBrgb(123, 25, 125)
HSLhsl(299, 67%, 29%)
HSVhsv(299, 80%, 49%)
CMYKcmyk(1.6%, 80%, 0%, 51%)
CIE-LABlab(30.37, 52.47, -33.72)
CIE-LCHlch(30.37, 62.37, 327.27°)
OKLaboklab(42.27% 0.1454 -0.0937)
OKLCHoklch(42.27% 0.173 327.2)
XYZxyz(12.2175, 6.3878, 19.9875)
Luminance0.0639 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7B197D #1B7D19
analogous
#49197D #7B197D #7D194D
triadic
#7B197D #7D7B19 #197D7B
tetradic
#7B197D #7D4919 #1B7D19 #194D7D
square
#7B197D #7D4919 #1B7D19 #194D7D
split-complementary
#7B197D #4D7D19 #197D49
monochromatic
#19051A #490F4A #7B197D #AD23B0 #D439D7

Accessibility & contrast

On white

9.22
#7B197D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.28
#7B197D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7B197D
9.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7B197D#FFFFFF#000000##FFFFFF
##7B197D1.009.222.289.22
#FFFFFF9.221.0021.001.00
#0000002.2821.001.0021.00
##FFFFFF9.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004080
Deuteranopia (green-blind)
#344C7B
Tritanopia (blue-blind)
#7F2B4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7b197d;
/* rgb */ color: rgb(123, 25, 125);
/* oklch */ color: oklch(42.3% 0.173 327.2);
Tailwind
colors: {
  custom: {
    50: '#a563a3',
    500: '#7b197d',
    950: '#000000',
  },
}
SCSS
$custom: #7b197d;
$custom-light: #a563a3;
$custom-dark: #000000;
JSON
{
  "hex": "#7b197d",
  "rgb": {
    "r": 123,
    "g": 25,
    "b": 125
  },
  "hsl": {
    "h": 298.8,
    "s": 66.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.4227,
    "c": 0.17297,
    "h": 327.2
  },
  "luminance": 0.06387
}

Semantic roles & 50–950 ramp

primary
#7B197D
secondary
#43B140
accent
#EA3E42
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7B197D

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

Preview Lab → · Contrast checker → · Palette generator →

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