#7C2097#7C2097

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

Color values

HEX#7C2097
RGBrgb(124, 32, 151)
HSLhsl(286, 65%, 36%)
HSVhsv(286, 79%, 59%)
CMYKcmyk(17.9%, 78.8%, 0%, 40.8%)
CIE-LABlab(33.03, 55.28, -45.56)
CIE-LCHlch(33.03, 71.63, 320.51°)
OKLaboklab(44.74% 0.138 -0.1283)
OKLCHoklch(44.74% 0.188 317.1)
XYZxyz(14.4138, 7.5531, 29.9708)
Luminance0.0755 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2097 #3B9720
analogous
#412097 #7C2097 #972076
triadic
#7C2097 #977C20 #20977C
tetradic
#7C2097 #974120 #3B9720 #207697
square
#7C2097 #974120 #3B9720 #207697
split-complementary
#7C2097 #769720 #209741
monochromatic
#290B32 #531564 #7C2097 #A52BC9 #BD56DB

Accessibility & contrast

On white

8.37
#7C2097 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #7C2097
8.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2097#FFFFFF#000000##FFFFFF
##7C20971.008.372.518.37
#FFFFFF8.371.0021.001.00
#0000002.5121.001.0021.00
##FFFFFF8.371.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2097;
/* rgb */ color: rgb(124, 32, 151);
/* oklch */ color: oklch(44.7% 0.188 317.1);
Tailwind
colors: {
  custom: {
    50: '#a667b6',
    500: '#7c2097',
    950: '#000000',
  },
}
SCSS
$custom: #7c2097;
$custom-light: #a667b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2097",
  "rgb": {
    "r": 124,
    "g": 32,
    "b": 151
  },
  "hsl": {
    "h": 286.387,
    "s": 65.027,
    "l": 35.882
  },
  "oklch": {
    "l": 0.44739,
    "c": 0.18841,
    "h": 317.1
  },
  "luminance": 0.07552
}

Semantic roles & 50–950 ramp

primary
#7C2097
secondary
#6CBF54
accent
#E84066
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2097

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

Preview Lab → · Contrast checker → · Palette generator →

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