#7C2DCC#7C2DCC

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

Color values

HEX#7C2DCC
RGBrgb(124, 45, 204)
HSLhsl(270, 64%, 49%)
HSVhsv(270, 78%, 80%)
CMYKcmyk(39.2%, 77.9%, 0%, 20%)
CIE-LABlab(38.76, 62.08, -67.79)
CIE-LCHlch(38.76, 91.92, 312.48°)
OKLaboklab(50.04% 0.1153 -0.1937)
OKLCHoklch(50.04% 0.225 300.8)
XYZxyz(20.1469, 10.5213, 58.0844)
Luminance0.1052 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DCC #7DCC2D
analogous
#2D2ECC #7C2DCC #CC2DCC
triadic
#7C2DCC #CC7C2D #2DCC7C
tetradic
#7C2DCC #CC2D2E #7DCC2D #2DCCCC
square
#7C2DCC #CC2D2E #7DCC2D #2DCCCC
split-complementary
#7C2DCC #CCCC2D #2ECC2D
monochromatic
#3F1768 #5E229A #7C2DCC #9B5BDB #B98DE6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7C2DCC#FFFFFF#000000##FFFFFF
##7C2DCC1.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)
#005BD0
Deuteranopia (green-blind)
#005AC9
Tritanopia (blue-blind)
#6A587C
Achromatopsia (no color)
#5B5B5B

Design tokens & code

CSS
--color: #7c2dcc;
/* rgb */ color: rgb(124, 45, 204);
/* oklch */ color: oklch(50.0% 0.225 300.8);
Tailwind
colors: {
  custom: {
    50: '#a96fdd',
    500: '#7c2dcc',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dcc;
$custom-light: #a96fdd;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dcc",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 204
  },
  "hsl": {
    "h": 269.811,
    "s": 63.855,
    "l": 48.824
  },
  "oklch": {
    "l": 0.50037,
    "c": 0.22543,
    "h": 300.8
  },
  "luminance": 0.10521
}

Semantic roles & 50–950 ramp

primary
#7C2DCC
secondary
#ABD085
accent
#E74194
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2DCC

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

Preview Lab → · Contrast checker → · Palette generator →

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