#7C2997#7C2997

#7C2997 is a mid, vivid purple. Relative luminance 0.081; OKLCH L 45.6% C 0.178 H 316.5°. Best body text is #FFFFFF at 8.01:1 contrast (WCAG AA passes).

Color values

HEX#7C2997
RGBrgb(124, 41, 151)
HSLhsl(285, 57%, 38%)
HSVhsv(285, 73%, 59%)
CMYKcmyk(17.9%, 72.8%, 0%, 40.8%)
CIE-LABlab(34.20, 51.94, -43.68)
CIE-LCHlch(34.20, 67.86, 319.94°)
OKLaboklab(45.57% 0.1294 -0.1229)
OKLCHoklch(45.57% 0.178 316.5)
XYZxyz(14.6902, 8.1059, 30.0629)
Luminance0.0810 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2997 #449729
analogous
#452997 #7C2997 #97297B
triadic
#7C2997 #977C29 #29977C
tetradic
#7C2997 #974529 #449729 #297B97
square
#7C2997 #974529 #449729 #297B97
split-complementary
#7C2997 #7B9729 #299745
monochromatic
#2D0F37 #541C67 #7C2997 #A436C7 #BA65D5

Accessibility & contrast

On white

8.01
#7C2997 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.62
#7C2997 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #7C2997
8.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2997#FFFFFF#000000##FFFFFF
##7C29971.008.012.628.01
#FFFFFF8.011.0021.001.00
#0000002.6221.001.0021.00
##FFFFFF8.011.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2997;
/* rgb */ color: rgb(124, 41, 151);
/* oklch */ color: oklch(45.6% 0.178 316.5);
Tailwind
colors: {
  custom: {
    50: '#a56bb6',
    500: '#7c2997',
    950: '#000000',
  },
}
SCSS
$custom: #7c2997;
$custom-light: #a56bb6;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2997",
  "rgb": {
    "r": 124,
    "g": 41,
    "b": 151
  },
  "hsl": {
    "h": 285.273,
    "s": 57.292,
    "l": 37.647
  },
  "oklch": {
    "l": 0.45567,
    "c": 0.17843,
    "h": 316.5
  },
  "luminance": 0.08105
}

Semantic roles & 50–950 ramp

primary
#7C2997
secondary
#77BB61
accent
#E1476D
background
#FAF6FB
surface
#F4ECF6
border
#CEC7D0
text
#100711
muted
#7F7A80

Preview Lab

Preview with #7C2997

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

Preview Lab → · Contrast checker → · Palette generator →

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