#7C2DCA#7C2DCA

#7C2DCA is a mid, highly saturated violet. Relative luminance 0.104; OKLCH L 49.9% C 0.223 H 301.2°. Best body text is #FFFFFF at 6.81:1 contrast (WCAG AA passes).

Color values

HEX#7C2DCA
RGBrgb(124, 45, 202)
HSLhsl(270, 64%, 48%)
HSVhsv(270, 78%, 79%)
CMYKcmyk(38.6%, 77.7%, 0%, 20.8%)
CIE-LABlab(38.60, 61.61, -66.90)
CIE-LCHlch(38.60, 90.95, 312.65°)
OKLaboklab(49.87% 0.1159 -0.1911)
OKLCHoklch(49.87% 0.223 301.2)
XYZxyz(19.9086, 10.4260, 56.8292)
Luminance0.1043 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DCA #7BCA2D
analogous
#2D2DCA #7C2DCA #CA2DC9
triadic
#7C2DCA #CA7C2D #2DCA7C
tetradic
#7C2DCA #CA2D2D #7BCA2D #2DC9CA
square
#7C2DCA #CA2D2D #7BCA2D #2DC9CA
split-complementary
#7C2DCA #C9CA2D #2DCA2D
monochromatic
#3F1766 #5D2298 #7C2DCA #9B5ADA #B98CE5

Accessibility & contrast

On white

6.81
#7C2DCA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.09
#7C2DCA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2DCA
6.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DCA#FFFFFF#000000##FFFFFF
##7C2DCA1.006.813.096.81
#FFFFFF6.811.0021.001.00
#0000003.0921.001.0021.00
##FFFFFF6.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7c2dca;
/* rgb */ color: rgb(124, 45, 202);
/* oklch */ color: oklch(49.9% 0.223 301.2);
Tailwind
colors: {
  custom: {
    50: '#a96fdb',
    500: '#7c2dca',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dca;
$custom-light: #a96fdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dca",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 202
  },
  "hsl": {
    "h": 270.191,
    "s": 63.563,
    "l": 48.431
  },
  "oklch": {
    "l": 0.49869,
    "c": 0.22347,
    "h": 301.2
  },
  "luminance": 0.10426
}

Semantic roles & 50–950 ramp

primary
#7C2DCA
secondary
#A9CF83
accent
#E74193
background
#FBF7FD
surface
#F6EDFB
border
#D0C8D4
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2DCA

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

Preview Lab → · Contrast checker → · Palette generator →

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