#7C2497#7C2497

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

Color values

HEX#7C2497
RGBrgb(124, 36, 151)
HSLhsl(286, 61%, 37%)
HSVhsv(286, 76%, 59%)
CMYKcmyk(17.9%, 76.2%, 0%, 40.8%)
CIE-LABlab(33.52, 53.87, -44.77)
CIE-LCHlch(33.52, 70.04, 320.27°)
OKLaboklab(45.09% 0.1344 -0.126)
OKLCHoklch(45.09% 0.184 316.8)
XYZxyz(14.5281, 7.7818, 30.0089)
Luminance0.0778 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2497 #3F9724
analogous
#432497 #7C2497 #972479
triadic
#7C2497 #977C24 #24977C
tetradic
#7C2497 #974324 #3F9724 #247997
square
#7C2497 #974324 #3F9724 #247997
split-complementary
#7C2497 #799724 #249743
monochromatic
#2B0C34 #531866 #7C2497 #A530C8 #BB5DD8

Accessibility & contrast

On white

8.22
#7C2497 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.56
#7C2497 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2497
8.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2497#FFFFFF#000000##FFFFFF
##7C24971.008.222.568.22
#FFFFFF8.221.0021.001.00
#0000002.5621.001.0021.00
##FFFFFF8.221.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2497;
/* rgb */ color: rgb(124, 36, 151);
/* oklch */ color: oklch(45.1% 0.184 316.8);
Tailwind
colors: {
  custom: {
    50: '#a669b6',
    500: '#7c2497',
    950: '#000000',
  },
}
SCSS
$custom: #7c2497;
$custom-light: #a669b6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2497",
  "rgb": {
    "r": 124,
    "g": 36,
    "b": 151
  },
  "hsl": {
    "h": 285.913,
    "s": 61.497,
    "l": 36.667
  },
  "oklch": {
    "l": 0.45086,
    "c": 0.18421,
    "h": 316.8
  },
  "luminance": 0.07781
}

Semantic roles & 50–950 ramp

primary
#7C2497
secondary
#71BD5A
accent
#E54369
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2497

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

Preview Lab → · Contrast checker → · Palette generator →

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