#7C2797#7C2797

#7C2797 is a mid, vivid purple. Relative luminance 0.080; OKLCH L 45.4% C 0.181 H 316.6°. Best body text is #FFFFFF at 8.10:1 contrast (WCAG AA passes).

Color values

HEX#7C2797
RGBrgb(124, 39, 151)
HSLhsl(286, 59%, 37%)
HSVhsv(286, 74%, 59%)
CMYKcmyk(17.9%, 74.2%, 0%, 40.8%)
CIE-LABlab(33.92, 52.73, -44.13)
CIE-LCHlch(33.92, 68.76, 320.08°)
OKLaboklab(45.37% 0.1314 -0.1242)
OKLCHoklch(45.37% 0.181 316.6)
XYZxyz(14.6228, 7.9711, 30.0405)
Luminance0.0797 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2797 #429727
analogous
#442797 #7C2797 #97277A
triadic
#7C2797 #977C27 #27977C
tetradic
#7C2797 #974427 #429727 #277A97
square
#7C2797 #974427 #429727 #277A97
split-complementary
#7C2797 #7A9727 #279744
monochromatic
#2C0E36 #541A66 #7C2797 #A434C8 #BA62D6

Accessibility & contrast

On white

8.10
#7C2797 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.59
#7C2797 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2797
8.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2797#FFFFFF#000000##FFFFFF
##7C27971.008.102.598.10
#FFFFFF8.101.0021.001.00
#0000002.5921.001.0021.00
##FFFFFF8.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004B9A
Deuteranopia (green-blind)
#285294
Tritanopia (blue-blind)
#7A3E5D
Achromatopsia (no color)
#505050

Design tokens & code

CSS
--color: #7c2797;
/* rgb */ color: rgb(124, 39, 151);
/* oklch */ color: oklch(45.4% 0.181 316.6);
Tailwind
colors: {
  custom: {
    50: '#a66ab6',
    500: '#7c2797',
    950: '#000000',
  },
}
SCSS
$custom: #7c2797;
$custom-light: #a66ab6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2797",
  "rgb": {
    "r": 124,
    "g": 39,
    "b": 151
  },
  "hsl": {
    "h": 285.536,
    "s": 58.947,
    "l": 37.255
  },
  "oklch": {
    "l": 0.45368,
    "c": 0.18081,
    "h": 316.6
  },
  "luminance": 0.0797
}

Semantic roles & 50–950 ramp

primary
#7C2797
secondary
#75BC5E
accent
#E2466B
background
#FAF6FB
surface
#F4EBF6
border
#CEC6D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2797

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

Preview Lab → · Contrast checker → · Palette generator →

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