#7C2DC2#7C2DC2

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

Color values

HEX#7C2DC2
RGBrgb(124, 45, 194)
HSLhsl(272, 62%, 47%)
HSVhsv(272, 77%, 76%)
CMYKcmyk(36.1%, 76.8%, 0%, 23.9%)
CIE-LABlab(37.94, 59.76, -63.29)
CIE-LCHlch(37.94, 87.05, 313.36°)
OKLaboklab(49.21% 0.1179 -0.1805)
OKLCHoklch(49.21% 0.216 303.2)
XYZxyz(18.9859, 10.0569, 51.9694)
Luminance0.1006 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DC2 #73C22D
analogous
#322DC2 #7C2DC2 #C22DBE
triadic
#7C2DC2 #C27C2D #2DC27C
tetradic
#7C2DC2 #C2322D #73C22D #2DBEC2
square
#7C2DC2 #C2322D #73C22D #2DBEC2
split-complementary
#7C2DC2 #BEC22D #2DC232
monochromatic
#3C165F #5C2190 #7C2DC2 #9A55D7 #B786E3

Accessibility & contrast

On white

6.97
#7C2DC2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.01
#7C2DC2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2DC2
6.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DC2#FFFFFF#000000##FFFFFF
##7C2DC21.006.973.016.97
#FFFFFF6.971.0021.001.00
#0000003.0121.001.0021.00
##FFFFFF6.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0058C6
Deuteranopia (green-blind)
#0059BF
Tritanopia (blue-blind)
#6E5477
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #7c2dc2;
/* rgb */ color: rgb(124, 45, 194);
/* oklch */ color: oklch(49.2% 0.216 303.2);
Tailwind
colors: {
  custom: {
    50: '#a86fd5',
    500: '#7c2dc2',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dc2;
$custom-light: #a86fd5;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dc2",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 194
  },
  "hsl": {
    "h": 271.812,
    "s": 62.343,
    "l": 46.863
  },
  "oklch": {
    "l": 0.49211,
    "c": 0.2156,
    "h": 303.2
  },
  "luminance": 0.10057
}

Semantic roles & 50–950 ramp

primary
#7C2DC2
secondary
#A3CD7E
accent
#E5428F
background
#FAF7FD
surface
#F4EDFA
border
#CEC8D3
text
#100814
muted
#7F7B83

Preview Lab

Preview with #7C2DC2

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

Preview Lab → · Contrast checker → · Palette generator →

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