#7C2EC7#7C2EC7

#7C2EC7 is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.7% C 0.220 H 301.8°. Best body text is #FFFFFF at 6.83:1 contrast (WCAG AA passes).

Color values

HEX#7C2EC7
RGBrgb(124, 46, 199)
HSLhsl(271, 62%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(37.7%, 76.9%, 0%, 22%)
CIE-LABlab(38.49, 60.53, -65.33)
CIE-LCHlch(38.49, 89.06, 312.81°)
OKLaboklab(49.72% 0.1158 -0.1865)
OKLCHoklch(49.72% 0.22 301.8)
XYZxyz(19.5955, 10.3625, 54.9896)
Luminance0.1036 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EC7 #79C72E
analogous
#2F2EC7 #7C2EC7 #C72EC5
triadic
#7C2EC7 #C77C2E #2EC77C
tetradic
#7C2EC7 #C72F2E #79C72E #2EC5C7
square
#7C2EC7 #C72F2E #79C72E #2EC5C7
split-complementary
#7C2EC7 #C5C72E #2EC72F
monochromatic
#3E1764 #5D2395 #7C2EC7 #9A59D9 #B98BE4

Accessibility & contrast

On white

6.83
#7C2EC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.07
#7C2EC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2EC7
6.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EC7#FFFFFF#000000##FFFFFF
##7C2EC71.006.833.076.83
#FFFFFF6.831.0021.001.00
#0000003.0721.001.0021.00
##FFFFFF6.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#6C567A
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c2ec7;
/* rgb */ color: rgb(124, 46, 199);
/* oklch */ color: oklch(49.7% 0.220 301.8);
Tailwind
colors: {
  custom: {
    50: '#a96fd9',
    500: '#7c2ec7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ec7;
$custom-light: #a96fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ec7",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 199
  },
  "hsl": {
    "h": 270.588,
    "s": 62.449,
    "l": 48.039
  },
  "oklch": {
    "l": 0.49716,
    "c": 0.21955,
    "h": 301.8
  },
  "luminance": 0.10363
}

Semantic roles & 50–950 ramp

primary
#7C2EC7
secondary
#A8CE83
accent
#E64292
background
#FAF7FD
surface
#F5EDFB
border
#CFC8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2EC7

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

Preview Lab → · Contrast checker → · Palette generator →

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