#7C2ED7#7C2ED7

#7C2ED7 is a mid, highly saturated violet. Relative luminance 0.111; OKLCH L 51.1% C 0.235 H 298.3°. Best body text is #FFFFFF at 6.50:1 contrast (WCAG AA passes).

Color values

HEX#7C2ED7
RGBrgb(124, 46, 215)
HSLhsl(268, 68%, 51%)
HSVhsv(268, 79%, 84%)
CMYKcmyk(42.3%, 78.6%, 0%, 15.7%)
CIE-LABlab(39.82, 64.28, -72.41)
CIE-LCHlch(39.82, 96.82, 311.60°)
OKLaboklab(51.06% 0.1115 -0.2073)
OKLCHoklch(51.06% 0.235 298.3)
XYZxyz(21.5517, 11.1450, 65.2925)
Luminance0.1114 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2ED7 #89D72E
analogous
#2E34D7 #7C2ED7 #D02ED7
triadic
#7C2ED7 #D77C2E #2ED77C
tetradic
#7C2ED7 #D72E34 #89D72E #2ED7D0
square
#7C2ED7 #D72E34 #89D72E #2ED7D0
split-complementary
#7C2ED7 #D7D02E #34D72E
monochromatic
#421674 #5F20A8 #7C2ED7 #9C61E1 #BC95EB

Accessibility & contrast

On white

6.50
#7C2ED7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.23
#7C2ED7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2ED7
6.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2ED7#FFFFFF#000000##FFFFFF
##7C2ED71.006.503.236.50
#FFFFFF6.501.0021.001.00
#0000003.2321.001.0021.00
##FFFFFF6.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EDC
Deuteranopia (green-blind)
#005CD4
Tritanopia (blue-blind)
#655D83
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c2ed7;
/* rgb */ color: rgb(124, 46, 215);
/* oklch */ color: oklch(51.1% 0.235 298.3);
Tailwind
colors: {
  custom: {
    50: '#aa70e5',
    500: '#7c2ed7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2ed7;
$custom-light: #aa70e5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2ed7",
  "rgb": {
    "r": 124,
    "g": 46,
    "b": 215
  },
  "hsl": {
    "h": 267.692,
    "s": 67.871,
    "l": 51.176
  },
  "oklch": {
    "l": 0.51062,
    "c": 0.23534,
    "h": 298.3
  },
  "luminance": 0.11145
}

Semantic roles & 50–950 ramp

primary
#7C2ED7
secondary
#B3D68B
accent
#EB3D9B
background
#FBF7FE
surface
#F6EDFC
border
#D0C8D5
text
#110816
muted
#807B84

Preview Lab

Preview with #7C2ED7

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

Preview Lab → · Contrast checker → · Palette generator →

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