#7A198D#7A198D

#7A198D is a dark, vivid purple. Relative luminance 0.068; OKLCH L 43.2% C 0.186 H 320.2°. Best body text is #FFFFFF at 8.93:1 contrast (WCAG AA passes).

Color values

HEX#7A198D
RGBrgb(122, 25, 141)
HSLhsl(290, 70%, 33%)
HSVhsv(290, 82%, 55%)
CMYKcmyk(13.5%, 82.3%, 0%, 44.7%)
CIE-LABlab(31.25, 55.16, -42.31)
CIE-LCHlch(31.25, 69.51, 322.51°)
OKLaboklab(43.19% 0.1427 -0.1188)
OKLCHoklch(43.19% 0.186 320.2)
XYZxyz(13.1808, 6.7566, 25.8040)
Luminance0.0676 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7A198D #2C8D19
analogous
#40198D #7A198D #8D1966
triadic
#7A198D #8D7A19 #198D7A
tetradic
#7A198D #8D4019 #2C8D19 #19668D
square
#7A198D #8D4019 #2C8D19 #19668D
split-complementary
#7A198D #668D19 #198D40
monochromatic
#200725 #4D1059 #7A198D #A722C1 #C443DE

Accessibility & contrast

On white

8.93
#7A198D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.35
#7A198D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7A198D
8.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7A198D#FFFFFF#000000##FFFFFF
##7A198D1.008.932.358.93
#FFFFFF8.931.0021.001.00
#0000002.3521.001.0021.00
##FFFFFF8.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004390
Deuteranopia (green-blind)
#264D8B
Tritanopia (blue-blind)
#7A3354
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7a198d;
/* rgb */ color: rgb(122, 25, 141);
/* oklch */ color: oklch(43.2% 0.186 320.2);
Tailwind
colors: {
  custom: {
    50: '#a463af',
    500: '#7a198d',
    950: '#000000',
  },
}
SCSS
$custom: #7a198d;
$custom-light: #a463af;
$custom-dark: #000000;
JSON
{
  "hex": "#7a198d",
  "rgb": {
    "r": 122,
    "g": 25,
    "b": 141
  },
  "hsl": {
    "h": 290.172,
    "s": 69.88,
    "l": 32.549
  },
  "oklch": {
    "l": 0.43192,
    "c": 0.18566,
    "h": 320.2
  },
  "luminance": 0.06756
}

Semantic roles & 50–950 ramp

primary
#7A198D
secondary
#57BF43
accent
#ED3B58
background
#FAF6FA
surface
#F4EBF4
border
#CEC6CE
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7A198D

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

Preview Lab → · Contrast checker → · Palette generator →

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