#7C2397#7C2397

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

Color values

HEX#7C2397
RGBrgb(124, 35, 151)
HSLhsl(286, 62%, 36%)
HSVhsv(286, 77%, 59%)
CMYKcmyk(17.9%, 76.8%, 0%, 40.8%)
CIE-LABlab(33.40, 54.24, -44.97)
CIE-LCHlch(33.40, 70.46, 320.33°)
OKLaboklab(45% 0.1353 -0.1266)
OKLCHoklch(45% 0.185 316.9)
XYZxyz(14.4983, 7.7221, 29.9990)
Luminance0.0772 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2397 #3E9723
analogous
#422397 #7C2397 #972378
triadic
#7C2397 #977C23 #23977C
tetradic
#7C2397 #974223 #3E9723 #237897
square
#7C2397 #974223 #3E9723 #237897
split-complementary
#7C2397 #789723 #239742
monochromatic
#2A0C34 #531765 #7C2397 #A52FC9 #BC5BD9

Accessibility & contrast

On white

8.25
#7C2397 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.54
#7C2397 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2397
8.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2397#FFFFFF#000000##FFFFFF
##7C23971.008.252.548.25
#FFFFFF8.251.0021.001.00
#0000002.5421.001.0021.00
##FFFFFF8.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00499A
Deuteranopia (green-blind)
#245194
Tritanopia (blue-blind)
#7B3C5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2397;
/* rgb */ color: rgb(124, 35, 151);
/* oklch */ color: oklch(45.0% 0.185 316.9);
Tailwind
colors: {
  custom: {
    50: '#a668b6',
    500: '#7c2397',
    950: '#000000',
  },
}
SCSS
$custom: #7c2397;
$custom-light: #a668b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2397",
  "rgb": {
    "r": 124,
    "g": 35,
    "b": 151
  },
  "hsl": {
    "h": 286.034,
    "s": 62.366,
    "l": 36.471
  },
  "oklch": {
    "l": 0.44996,
    "c": 0.1853,
    "h": 316.9
  },
  "luminance": 0.07722
}

Semantic roles & 50–950 ramp

primary
#7C2397
secondary
#70BE58
accent
#E54268
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2397

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

Preview Lab → · Contrast checker → · Palette generator →

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