#7C198E#7C198E

#7C198E is a dark, vivid purple. Relative luminance 0.069; OKLCH L 43.6% C 0.187 H 320.7°. Best body text is #FFFFFF at 8.80:1 contrast (WCAG AA passes).

Color values

HEX#7C198E
RGBrgb(124, 25, 142)
HSLhsl(291, 70%, 33%)
HSVhsv(291, 82%, 56%)
CMYKcmyk(12.7%, 82.4%, 0%, 44.3%)
CIE-LABlab(31.66, 55.73, -42.25)
CIE-LCHlch(31.66, 69.93, 322.83°)
OKLaboklab(43.57% 0.145 -0.1186)
OKLCHoklch(43.57% 0.187 320.7)
XYZxyz(13.5417, 6.9341, 26.2111)
Luminance0.0693 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C198E #2B8E19
analogous
#41198E #7C198E #8E1966
triadic
#7C198E #8E7C19 #198E7C
tetradic
#7C198E #8E4119 #2B8E19 #19668E
square
#7C198E #8E4119 #2B8E19 #19668E
split-complementary
#7C198E #668E19 #198E41
monochromatic
#210726 #4F105A #7C198E #A922C2 #C643DE

Accessibility & contrast

On white

8.80
#7C198E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C198E
8.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C198E#FFFFFF#000000##FFFFFF
##7C198E1.008.802.398.80
#FFFFFF8.801.0021.001.00
#0000002.3921.001.0021.00
##FFFFFF8.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004491
Deuteranopia (green-blind)
#274E8B
Tritanopia (blue-blind)
#7D3355
Achromatopsia (no color)
#4A4A4A

Design tokens & code

CSS
--color: #7c198e;
/* rgb */ color: rgb(124, 25, 142);
/* oklch */ color: oklch(43.6% 0.187 320.7);
Tailwind
colors: {
  custom: {
    50: '#a664b0',
    500: '#7c198e',
    950: '#000000',
  },
}
SCSS
$custom: #7c198e;
$custom-light: #a664b0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c198e",
  "rgb": {
    "r": 124,
    "g": 25,
    "b": 142
  },
  "hsl": {
    "h": 290.769,
    "s": 70.06,
    "l": 32.745
  },
  "oklch": {
    "l": 0.43569,
    "c": 0.18729,
    "h": 320.7
  },
  "luminance": 0.06933
}

Semantic roles & 50–950 ramp

primary
#7C198E
secondary
#57BF44
accent
#ED3B56
background
#FAF6FA
surface
#F4EBF5
border
#CEC6CF
text
#100610
muted
#7F7A7F

Preview Lab

Preview with #7C198E

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

Preview Lab → · Contrast checker → · Palette generator →

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