#7C2EC1#7C2EC1

#7C2EC1 is a mid, highly saturated violet. Relative luminance 0.101; OKLCH L 49.2% C 0.214 H 303.3°. Best body text is #FFFFFF at 6.96:1 contrast (WCAG AA passes).

Color values

HEX#7C2EC1
RGBrgb(124, 46, 193)
HSLhsl(272, 62%, 47%)
HSVhsv(272, 76%, 76%)
CMYKcmyk(35.8%, 76.2%, 0%, 24.3%)
CIE-LABlab(38.00, 59.14, -62.61)
CIE-LCHlch(38.00, 86.12, 313.36°)
OKLaboklab(49.23% 0.1173 -0.1785)
OKLCHoklch(49.23% 0.214 303.3)
XYZxyz(18.9126, 10.0893, 51.3928)
Luminance0.1009 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2EC1 #73C12E
analogous
#332EC1 #7C2EC1 #C12EBD
triadic
#7C2EC1 #C17C2E #2EC17C
tetradic
#7C2EC1 #C1332E #73C12E #2EBDC1
square
#7C2EC1 #C1332E #73C12E #2EBDC1
split-complementary
#7C2EC1 #BDC12E #2EC133
monochromatic
#3C165E #5C2290 #7C2EC1 #9A56D7 #B787E2

Accessibility & contrast

On white

6.96
#7C2EC1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.02
#7C2EC1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2EC1
6.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2EC1#FFFFFF#000000##FFFFFF
##7C2EC11.006.963.026.96
#FFFFFF6.961.0021.001.00
#0000003.0221.001.0021.00
##FFFFFF6.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C5
Deuteranopia (green-blind)
#0059BE
Tritanopia (blue-blind)
#6E5476
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c2ec1;
/* rgb */ color: rgb(124, 46, 193);
/* oklch */ color: oklch(49.2% 0.214 303.3);
Tailwind
colors: {
  custom: {
    50: '#a86fd5',
    500: '#7c2ec1',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ec1;
$custom-light: #a86fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ec1",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 193
  },
  "hsl": {
    "h": 271.837,
    "s": 61.506,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49227,
    "c": 0.2136,
    "h": 303.3
  },
  "luminance": 0.10089
}

Semantic roles & 50–950 ramp

primary
#7C2EC1
secondary
#A3CC7F
accent
#E5438F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2EC1

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

Preview Lab → · Contrast checker → · Palette generator →

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