#7C2198#7C2198

#7C2198 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.9% C 0.188 H 316.7°. Best body text is #FFFFFF at 8.31:1 contrast (WCAG AA passes).

Color values

HEX#7C2198
RGBrgb(124, 33, 152)
HSLhsl(286, 64%, 36%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(18.4%, 78.3%, 0%, 40.4%)
CIE-LABlab(33.22, 55.14, -45.86)
CIE-LCHlch(33.22, 71.72, 320.25°)
OKLaboklab(44.89% 0.1369 -0.1292)
OKLCHoklch(44.89% 0.188 316.7)
XYZxyz(14.5227, 7.6404, 30.4094)
Luminance0.0764 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2198 #3D9821
analogous
#412198 #7C2198 #982179
triadic
#7C2198 #987C21 #21987C
tetradic
#7C2198 #984121 #3D9821 #217998
square
#7C2198 #984121 #3D9821 #217998
split-complementary
#7C2198 #799821 #219841
monochromatic
#2A0B33 #531666 #7C2198 #A52CCA #BC59DB

Accessibility & contrast

On white

8.31
#7C2198 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.53
#7C2198 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2198
8.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2198#FFFFFF#000000##FFFFFF
##7C21981.008.312.538.31
#FFFFFF8.311.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499B
Deuteranopia (green-blind)
#215195
Tritanopia (blue-blind)
#7A3C5C
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2198;
/* rgb */ color: rgb(124, 33, 152);
/* oklch */ color: oklch(44.9% 0.188 316.7);
Tailwind
colors: {
  custom: {
    50: '#a667b7',
    500: '#7c2198',
    950: '#000000',
  },
}
SCSS
$custom: #7c2198;
$custom-light: #a667b7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2198",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 152
  },
  "hsl": {
    "h": 285.882,
    "s": 64.324,
    "l": 36.275
  },
  "oklch": {
    "l": 0.44894,
    "c": 0.18828,
    "h": 316.7
  },
  "luminance": 0.0764
}

Semantic roles & 50–950 ramp

primary
#7C2198
secondary
#6FBF56
accent
#E74068
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2198

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

Preview Lab → · Contrast checker → · Palette generator →

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