#7C2197#7C2197

#7C2197 is a dark, vivid purple. Relative luminance 0.076; OKLCH L 44.8% C 0.187 H 317.0°. Best body text is #FFFFFF at 8.33:1 contrast (WCAG AA passes).

Color values

HEX#7C2197
RGBrgb(124, 33, 151)
HSLhsl(286, 64%, 36%)
HSVhsv(286, 78%, 59%)
CMYKcmyk(17.9%, 78.1%, 0%, 40.8%)
CIE-LABlab(33.15, 54.94, -45.37)
CIE-LCHlch(33.15, 71.25, 320.45°)
OKLaboklab(44.82% 0.1371 -0.1278)
OKLCHoklch(44.82% 0.187 317)
XYZxyz(14.4411, 7.6078, 29.9799)
Luminance0.0761 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2197 #3C9721
analogous
#412197 #7C2197 #972177
triadic
#7C2197 #977C21 #21977C
tetradic
#7C2197 #974121 #3C9721 #217797
square
#7C2197 #974121 #3C9721 #217797
split-complementary
#7C2197 #779721 #219741
monochromatic
#2A0B33 #531665 #7C2197 #A52CC9 #BD58DA

Accessibility & contrast

On white

8.33
#7C2197 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.52
#7C2197 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2197
8.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2197#FFFFFF#000000##FFFFFF
##7C21971.008.332.528.33
#FFFFFF8.331.0021.001.00
#0000002.5221.001.0021.00
##FFFFFF8.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#235194
Tritanopia (blue-blind)
#7B3B5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2197;
/* rgb */ color: rgb(124, 33, 151);
/* oklch */ color: oklch(44.8% 0.187 317.0);
Tailwind
colors: {
  custom: {
    50: '#a667b6',
    500: '#7c2197',
    950: '#000000',
  },
}
SCSS
$custom: #7c2197;
$custom-light: #a667b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2197",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 151
  },
  "hsl": {
    "h": 286.271,
    "s": 64.13,
    "l": 36.078
  },
  "oklch": {
    "l": 0.44822,
    "c": 0.18739,
    "h": 317
  },
  "luminance": 0.07607
}

Semantic roles & 50–950 ramp

primary
#7C2197
secondary
#6DBE55
accent
#E74167
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2197

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

Preview Lab → · Contrast checker → · Palette generator →

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