#7C2DC7#7C2DC7

#7C2DC7 is a mid, highly saturated violet. Relative luminance 0.103; OKLCH L 49.6% C 0.221 H 301.9°. Best body text is #FFFFFF at 6.87:1 contrast (WCAG AA passes).

Color values

HEX#7C2DC7
RGBrgb(124, 45, 199)
HSLhsl(271, 63%, 48%)
HSVhsv(271, 77%, 78%)
CMYKcmyk(37.7%, 77.4%, 0%, 22%)
CIE-LABlab(38.35, 60.92, -65.55)
CIE-LCHlch(38.35, 89.49, 312.90°)
OKLaboklab(49.62% 0.1166 -0.1871)
OKLCHoklch(49.62% 0.221 301.9)
XYZxyz(19.5569, 10.2853, 54.9767)
Luminance0.1028 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DC7 #78C72D
analogous
#2F2DC7 #7C2DC7 #C72DC5
triadic
#7C2DC7 #C77C2D #2DC77C
tetradic
#7C2DC7 #C72F2D #78C72D #2DC5C7
square
#7C2DC7 #C72F2D #78C72D #2DC5C7
split-complementary
#7C2DC7 #C5C72D #2DC72F
monochromatic
#3E1663 #5D2295 #7C2DC7 #9A58D9 #B88AE5

Accessibility & contrast

On white

6.87
#7C2DC7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.06
#7C2DC7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2DC7
6.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DC7#FFFFFF#000000##FFFFFF
##7C2DC71.006.873.066.87
#FFFFFF6.871.0021.001.00
#0000003.0621.001.0021.00
##FFFFFF6.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059CB
Deuteranopia (green-blind)
#005AC4
Tritanopia (blue-blind)
#6C5679
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c2dc7;
/* rgb */ color: rgb(124, 45, 199);
/* oklch */ color: oklch(49.6% 0.221 301.9);
Tailwind
colors: {
  custom: {
    50: '#a96fd9',
    500: '#7c2dc7',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dc7;
$custom-light: #a96fd9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dc7",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 199
  },
  "hsl": {
    "h": 270.779,
    "s": 63.115,
    "l": 47.843
  },
  "oklch": {
    "l": 0.49621,
    "c": 0.22052,
    "h": 301.9
  },
  "luminance": 0.10285
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C2DC7

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

Preview Lab → · Contrast checker → · Palette generator →

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