#7A197E#7A197E

#7A197E is a dark, vivid purple. Relative luminance 0.063; OKLCH L 42.2% C 0.173 H 326.3°. Best body text is #FFFFFF at 9.26:1 contrast (WCAG AA passes).

Color values

HEX#7A197E
RGBrgb(122, 25, 126)
HSLhsl(298, 67%, 30%)
HSVhsv(298, 80%, 49%)
CMYKcmyk(3.2%, 80.2%, 0%, 50.6%)
CIE-LABlab(30.25, 52.43, -34.54)
CIE-LCHlch(30.25, 62.78, 326.62°)
OKLaboklab(42.17% 0.1442 -0.0961)
OKLCHoklch(42.17% 0.173 326.3)
XYZxyz(12.1393, 6.3400, 20.3190)
Luminance0.0634 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A197E #1D7E19
analogous
#48197E #7A197E #7E194F
triadic
#7A197E #7E7A19 #197E7A
tetradic
#7A197E #7E4819 #1D7E19 #194F7E
square
#7A197E #7E4819 #1D7E19 #194F7E
split-complementary
#7A197E #4F7E19 #197E48
monochromatic
#19051A #490F4B #7A197E #AB23B1 #D23AD8

Accessibility & contrast

On white

9.26
#7A197E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7A197E
9.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A197E#FFFFFF#000000##FFFFFF
##7A197E1.009.262.279.26
#FFFFFF9.261.0021.001.00
#0000002.2721.001.0021.00
##FFFFFF9.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004081
Deuteranopia (green-blind)
#324B7C
Tritanopia (blue-blind)
#7D2B4B
Achromatopsia (no color)
#474747

Design tokens & code

CSS
--color: #7a197e;
/* rgb */ color: rgb(122, 25, 126);
/* oklch */ color: oklch(42.2% 0.173 326.3);
Tailwind
colors: {
  custom: {
    50: '#a463a4',
    500: '#7a197e',
    950: '#000000',
  },
}
SCSS
$custom: #7a197e;
$custom-light: #a463a4;
$custom-dark: #000000;
JSON
{
  "hex": "#7a197e",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 126
  },
  "hsl": {
    "h": 297.624,
    "s": 66.887,
    "l": 29.608
  },
  "oklch": {
    "l": 0.42174,
    "c": 0.17331,
    "h": 326.3
  },
  "luminance": 0.06339
}

Semantic roles & 50–950 ramp

primary
#7A197E
secondary
#45B241
accent
#EA3E45
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#10060F
muted
#7F7A7F

Preview Lab

Preview with #7A197E

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

Preview Lab → · Contrast checker → · Palette generator →

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