#7C2196#7C2196

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

Color values

HEX#7C2196
RGBrgb(124, 33, 150)
HSLhsl(287, 64%, 36%)
HSVhsv(287, 78%, 59%)
CMYKcmyk(17.3%, 78%, 0%, 41.2%)
CIE-LABlab(33.08, 54.74, -44.87)
CIE-LCHlch(33.08, 70.78, 320.66°)
OKLaboklab(44.75% 0.1372 -0.1263)
OKLCHoklch(44.75% 0.187 317.4)
XYZxyz(14.3603, 7.5754, 29.5540)
Luminance0.0757 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2196 #3B9621
analogous
#422196 #7C2196 #962175
triadic
#7C2196 #967C21 #21967C
tetradic
#7C2196 #964221 #3B9621 #217596
square
#7C2196 #964221 #3B9621 #217596
split-complementary
#7C2196 #759621 #219642
monochromatic
#290B32 #531664 #7C2196 #A52CC8 #BD57DA

Accessibility & contrast

On white

8.35
#7C2196 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.51
#7C2196 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2196
8.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2196#FFFFFF#000000##FFFFFF
##7C21961.008.352.518.35
#FFFFFF8.351.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004899
Deuteranopia (green-blind)
#245093
Tritanopia (blue-blind)
#7B3B5B
Achromatopsia (no color)
#4E4E4E

Design tokens & code

CSS
--color: #7c2196;
/* rgb */ color: rgb(124, 33, 150);
/* oklch */ color: oklch(44.8% 0.187 317.4);
Tailwind
colors: {
  custom: {
    50: '#a667b5',
    500: '#7c2196',
    950: '#000000',
  },
}
SCSS
$custom: #7c2196;
$custom-light: #a667b5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2196",
  "rgb": {
    "r": 124,
    "g": 33,
    "b": 150
  },
  "hsl": {
    "h": 286.667,
    "s": 63.934,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44751,
    "c": 0.18651,
    "h": 317.4
  },
  "luminance": 0.07575
}

Semantic roles & 50–950 ramp

primary
#7C2196
secondary
#6CBE55
accent
#E74166
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2196

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

Preview Lab → · Contrast checker → · Palette generator →

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