#7C198F#7C198F

#7C198F is a dark, vivid purple. Relative luminance 0.070; OKLCH L 43.6% C 0.188 H 320.3°. Best body text is #FFFFFF at 8.78:1 contrast (WCAG AA passes).

Color values

HEX#7C198F
RGBrgb(124, 25, 143)
HSLhsl(290, 70%, 33%)
HSVhsv(290, 83%, 56%)
CMYKcmyk(13.3%, 82.5%, 0%, 43.9%)
CIE-LABlab(31.73, 55.92, -42.75)
CIE-LCHlch(31.73, 70.39, 322.60°)
OKLaboklab(43.64% 0.1448 -0.12)
OKLCHoklch(43.64% 0.188 320.3)
XYZxyz(13.6171, 6.9643, 26.6083)
Luminance0.0696 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C198F #2C8F19
analogous
#41198F #7C198F #8F1967
triadic
#7C198F #8F7C19 #198F7C
tetradic
#7C198F #8F4119 #2C8F19 #19678F
square
#7C198F #8F4119 #2C8F19 #19678F
split-complementary
#7C198F #678F19 #198F41
monochromatic
#220727 #4F105B #7C198F #A922C3 #C544DE

Accessibility & contrast

On white

8.78
#7C198F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.39
#7C198F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C198F
8.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C198F#FFFFFF#000000##FFFFFF
##7C198F1.008.782.398.78
#FFFFFF8.781.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004492
Deuteranopia (green-blind)
#264E8C
Tritanopia (blue-blind)
#7C3455
Achromatopsia (no color)
#4B4B4B

Design tokens & code

CSS
--color: #7c198f;
/* rgb */ color: rgb(124, 25, 143);
/* oklch */ color: oklch(43.6% 0.188 320.3);
Tailwind
colors: {
  custom: {
    50: '#a664b0',
    500: '#7c198f',
    950: '#000000',
  },
}
SCSS
$custom: #7c198f;
$custom-light: #a664b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c198f",
  "rgb": {
    "r": 124,
    "g": 25,
    "b": 143
  },
  "hsl": {
    "h": 290.339,
    "s": 70.238,
    "l": 32.941
  },
  "oklch": {
    "l": 0.43639,
    "c": 0.18812,
    "h": 320.3
  },
  "luminance": 0.06964
}

Semantic roles & 50–950 ramp

primary
#7C198F
secondary
#58BF44
accent
#ED3B57
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100611
muted
#7F7A80

Preview Lab

Preview with #7C198F

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

Preview Lab → · Contrast checker → · Palette generator →

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