#7C2199#7C2199

#7C2199 is a dark, vivid purple. Relative luminance 0.077; OKLCH L 45.0% C 0.189 H 316.3°. Best body text is #FFFFFF at 8.29:1 contrast (WCAG AA passes).

Color values

HEX#7C2199
RGBrgb(124, 33, 153)
HSLhsl(286, 65%, 36%)
HSVhsv(286, 78%, 60%)
CMYKcmyk(19%, 78.4%, 0%, 40%)
CIE-LABlab(33.29, 55.34, -46.36)
CIE-LCHlch(33.29, 72.19, 320.04°)
OKLaboklab(44.97% 0.1368 -0.1307)
OKLCHoklch(44.97% 0.189 316.3)
XYZxyz(14.6049, 7.6733, 30.8426)
Luminance0.0767 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2199 #3E9921
analogous
#402199 #7C2199 #99217A
triadic
#7C2199 #997C21 #21997C
tetradic
#7C2199 #994021 #3E9921 #217A99
square
#7C2199 #994021 #3E9921 #217A99
split-complementary
#7C2199 #7A9921 #219940
monochromatic
#2A0B34 #531667 #7C2199 #A52CCB #BC59DB

Accessibility & contrast

On white

8.29
#7C2199 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2199
8.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2199#FFFFFF#000000##FFFFFF
##7C21991.008.292.538.29
#FFFFFF8.291.0021.001.00
#0000002.5321.001.0021.00
##FFFFFF8.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499C
Deuteranopia (green-blind)
#205196
Tritanopia (blue-blind)
#7A3C5D
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2199;
/* rgb */ color: rgb(124, 33, 153);
/* oklch */ color: oklch(45.0% 0.189 316.3);
Tailwind
colors: {
  custom: {
    50: '#a667b8',
    500: '#7c2199',
    950: '#000000',
  },
}
SCSS
$custom: #7c2199;
$custom-light: #a667b8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2199",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 153
  },
  "hsl": {
    "h": 285.5,
    "s": 64.516,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44966,
    "c": 0.18918,
    "h": 316.3
  },
  "luminance": 0.07673
}

Semantic roles & 50–950 ramp

primary
#7C2199
secondary
#70BF56
accent
#E84069
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2199

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

Preview Lab → · Contrast checker → · Palette generator →

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