#7C2ECA#7C2ECA

#7C2ECA is a mid, highly saturated violet. Relative luminance 0.105; OKLCH L 50.0% C 0.223 H 301.1°. Best body text is #FFFFFF at 6.77:1 contrast (WCAG AA passes).

Color values

HEX#7C2ECA
RGBrgb(124, 46, 202)
HSLhsl(270, 63%, 49%)
HSVhsv(270, 77%, 79%)
CMYKcmyk(38.6%, 77.2%, 0%, 20.8%)
CIE-LABlab(38.73, 61.22, -66.68)
CIE-LCHlch(38.73, 90.52, 312.56°)
OKLaboklab(49.96% 0.1151 -0.1905)
OKLCHoklch(49.96% 0.223 301.1)
XYZxyz(19.9472, 10.5032, 56.8421)
Luminance0.1050 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2ECA #7CCA2E
analogous
#2E2ECA #7C2ECA #CA2ECA
triadic
#7C2ECA #CA7C2E #2ECA7C
tetradic
#7C2ECA #CA2E2E #7CCA2E #2ECACA
square
#7C2ECA #CA2E2E #7CCA2E #2ECACA
split-complementary
#7C2ECA #CACA2E #2ECA2E
monochromatic
#3F1766 #5D2398 #7C2ECA #9B5BDA #B98DE5

Accessibility & contrast

On white

6.77
#7C2ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.10
#7C2ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2ECA
6.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2ECA#FFFFFF#000000##FFFFFF
##7C2ECA1.006.773.106.77
#FFFFFF6.771.0021.001.00
#0000003.1021.001.0021.00
##FFFFFF6.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005ACE
Deuteranopia (green-blind)
#005AC7
Tritanopia (blue-blind)
#6A587B
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c2eca;
/* rgb */ color: rgb(124, 46, 202);
/* oklch */ color: oklch(50.0% 0.223 301.1);
Tailwind
colors: {
  custom: {
    50: '#a970db',
    500: '#7c2eca',
    950: '#000000',
  },
}
SCSS
$custom: #7c2eca;
$custom-light: #a970db;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2eca",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 202
  },
  "hsl": {
    "h": 270,
    "s": 62.903,
    "l": 48.627
  },
  "oklch": {
    "l": 0.49963,
    "c": 0.22251,
    "h": 301.1
  },
  "luminance": 0.10503
}

Semantic roles & 50–950 ramp

primary
#7C2ECA
secondary
#AACF84
accent
#E64294
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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