#7A198E#7A198E

#7A198E is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.3% C 0.187 H 319.8°. Best body text is #FFFFFF at 8.91:1 contrast (WCAG AA passes).

Color values

HEX#7A198E
RGBrgb(122, 25, 142)
HSLhsl(290, 70%, 33%)
HSVhsv(290, 82%, 56%)
CMYKcmyk(14.1%, 82.4%, 0%, 44.3%)
CIE-LABlab(31.32, 55.34, -42.81)
CIE-LCHlch(31.32, 69.97, 322.27°)
OKLaboklab(43.26% 0.1425 -0.1203)
OKLCHoklch(43.26% 0.187 319.8)
XYZxyz(13.2555, 6.7865, 26.1977)
Luminance0.0679 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A198E #2D8E19
analogous
#40198E #7A198E #8E1967
triadic
#7A198E #8E7A19 #198E7A
tetradic
#7A198E #8E4019 #2D8E19 #19678E
square
#7A198E #8E4019 #2D8E19 #19678E
split-complementary
#7A198E #678E19 #198E40
monochromatic
#210726 #4D105A #7A198E #A722C2 #C443DE

Accessibility & contrast

On white

8.91
#7A198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.36
#7A198E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A198E
8.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A198E#FFFFFF#000000##FFFFFF
##7A198E1.008.912.368.91
#FFFFFF8.911.0021.001.00
#0000002.3621.001.0021.00
##FFFFFF8.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004391
Deuteranopia (green-blind)
#254D8B
Tritanopia (blue-blind)
#7A3355
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a198e;
/* rgb */ color: rgb(122, 25, 142);
/* oklch */ color: oklch(43.3% 0.187 319.8);
Tailwind
colors: {
  custom: {
    50: '#a463b0',
    500: '#7a198e',
    950: '#000000',
  },
}
SCSS
$custom: #7a198e;
$custom-light: #a463b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7a198e",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 289.744,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43263,
    "c": 0.18651,
    "h": 319.8
  },
  "luminance": 0.06786
}

Semantic roles & 50–950 ramp

primary
#7A198E
secondary
#59BF44
accent
#ED3B59
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A198E

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

Preview Lab → · Contrast checker → · Palette generator →

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