#7A197F#7A197F

#7A197F is a dark, vivid purple. Relative luminance 0.064; OKLCH L 42.2% C 0.174 H 325.9°. Best body text is #FFFFFF at 9.24:1 contrast (WCAG AA passes).

Color values

HEX#7A197F
RGBrgb(122, 25, 127)
HSLhsl(297, 67%, 30%)
HSVhsv(297, 80%, 50%)
CMYKcmyk(3.9%, 80.3%, 0%, 50.2%)
CIE-LABlab(30.32, 52.60, -35.07)
CIE-LCHlch(30.32, 63.22, 326.31°)
OKLaboklab(42.24% 0.1442 -0.0976)
OKLCHoklch(42.24% 0.174 325.9)
XYZxyz(12.2042, 6.3660, 20.6605)
Luminance0.0636 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A197F #1E7F19
analogous
#47197F #7A197F #7F1951
triadic
#7A197F #7F7A19 #197F7A
tetradic
#7A197F #7F4719 #1E7F19 #19517F
square
#7A197F #7F4719 #1E7F19 #19517F
split-complementary
#7A197F #517F19 #197F47
monochromatic
#19051A #490F4C #7A197F #AB23B2 #D13AD8

Accessibility & contrast

On white

9.24
#7A197F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.27
#7A197F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A197F
9.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A197F#FFFFFF#000000##FFFFFF
##7A197F1.009.242.279.24
#FFFFFF9.241.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004082
Deuteranopia (green-blind)
#324B7D
Tritanopia (blue-blind)
#7D2C4C
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a197f;
/* rgb */ color: rgb(122, 25, 127);
/* oklch */ color: oklch(42.2% 0.174 325.9);
Tailwind
colors: {
  custom: {
    50: '#a463a4',
    500: '#7a197f',
    950: '#000000',
  },
}
SCSS
$custom: #7a197f;
$custom-light: #a463a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a197f",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 127
  },
  "hsl": {
    "h": 297.059,
    "s": 67.105,
    "l": 29.804
  },
  "oklch": {
    "l": 0.42239,
    "c": 0.17412,
    "h": 325.9
  },
  "luminance": 0.06365
}

Semantic roles & 50–950 ramp

primary
#7A197F
secondary
#46B341
accent
#EA3E46
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A197F

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

Preview Lab → · Contrast checker → · Palette generator →

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