#7C2597#7C2597

#7C2597 is a mid, vivid purple. Relative luminance 0.078; OKLCH L 45.2% C 0.183 H 316.8°. Best body text is #FFFFFF at 8.18:1 contrast (WCAG AA passes).

Color values

HEX#7C2597
RGBrgb(124, 37, 151)
HSLhsl(286, 61%, 37%)
HSVhsv(286, 75%, 59%)
CMYKcmyk(17.9%, 75.5%, 0%, 40.8%)
CIE-LABlab(33.65, 53.50, -44.56)
CIE-LCHlch(33.65, 69.63, 320.21°)
OKLaboklab(45.18% 0.1334 -0.1254)
OKLCHoklch(45.18% 0.183 316.8)
XYZxyz(14.5588, 7.8432, 30.0192)
Luminance0.0784 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2597 #409725
analogous
#432597 #7C2597 #972579
triadic
#7C2597 #977C25 #25977C
tetradic
#7C2597 #974325 #409725 #257997
square
#7C2597 #974325 #409725 #257997
split-complementary
#7C2597 #799725 #259743
monochromatic
#2B0D35 #541966 #7C2597 #A431C8 #BB5FD8

Accessibility & contrast

On white

8.18
#7C2597 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.57
#7C2597 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2597
8.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2597#FFFFFF#000000##FFFFFF
##7C25971.008.182.578.18
#FFFFFF8.181.0021.001.00
#0000002.5721.001.0021.00
##FFFFFF8.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004A9A
Deuteranopia (green-blind)
#265294
Tritanopia (blue-blind)
#7A3D5C
Achromatopsia (no color)
#4F4F4F

Design tokens & code

CSS
--color: #7c2597;
/* rgb */ color: rgb(124, 37, 151);
/* oklch */ color: oklch(45.2% 0.183 316.8);
Tailwind
colors: {
  custom: {
    50: '#a669b6',
    500: '#7c2597',
    950: '#000000',
  },
}
SCSS
$custom: #7c2597;
$custom-light: #a669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2597",
  "rgb": {
    "r": 124,
    "g": 37,
    "b": 151
  },
  "hsl": {
    "h": 285.789,
    "s": 60.638,
    "l": 36.863
  },
  "oklch": {
    "l": 0.45178,
    "c": 0.1831,
    "h": 316.8
  },
  "luminance": 0.07843
}

Semantic roles & 50–950 ramp

primary
#7C2597
secondary
#72BD5B
accent
#E4446A
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2597

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

Preview Lab → · Contrast checker → · Palette generator →

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