#7C2DC5#7C2DC5

#7C2DC5 is a mid, highly saturated violet. Relative luminance 0.102; OKLCH L 49.5% C 0.219 H 302.4°. Best body text is #FFFFFF at 6.91:1 contrast (WCAG AA passes).

Color values

HEX#7C2DC5
RGBrgb(124, 45, 197)
HSLhsl(271, 63%, 47%)
HSVhsv(271, 77%, 77%)
CMYKcmyk(37.1%, 77.2%, 0%, 22.7%)
CIE-LABlab(38.19, 60.45, -64.65)
CIE-LCHlch(38.19, 88.51, 313.08°)
OKLaboklab(49.46% 0.1172 -0.1845)
OKLCHoklch(49.46% 0.219 302.4)
XYZxyz(19.3262, 10.1930, 53.7618)
Luminance0.1019 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C2DC5 #76C52D
analogous
#302DC5 #7C2DC5 #C52DC2
triadic
#7C2DC5 #C57C2D #2DC57C
tetradic
#7C2DC5 #C5302D #76C52D #2DC2C5
square
#7C2DC5 #C5302D #76C52D #2DC2C5
split-complementary
#7C2DC5 #C2C52D #2DC530
monochromatic
#3D1661 #5D2293 #7C2DC5 #9A57D9 #B888E4

Accessibility & contrast

On white

6.91
#7C2DC5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.04
#7C2DC5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C2DC5
6.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C2DC5#FFFFFF#000000##FFFFFF
##7C2DC51.006.913.046.91
#FFFFFF6.911.0021.001.00
#0000003.0421.001.0021.00
##FFFFFF6.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0059C9
Deuteranopia (green-blind)
#0059C2
Tritanopia (blue-blind)
#6C5578
Achromatopsia (no color)
#5A5A5A

Design tokens & code

CSS
--color: #7c2dc5;
/* rgb */ color: rgb(124, 45, 197);
/* oklch */ color: oklch(49.5% 0.219 302.4);
Tailwind
colors: {
  custom: {
    50: '#a86fd8',
    500: '#7c2dc5',
    950: '#000000',
  },
}
SCSS
$custom: #7c2dc5;
$custom-light: #a86fd8;
$custom-dark: #000000;
JSON
{
  "hex": "#7c2dc5",
  "rgb": {
    "r": 124,
    "g": 45,
    "b": 197
  },
  "hsl": {
    "h": 271.184,
    "s": 62.81,
    "l": 47.451
  },
  "oklch": {
    "l": 0.49456,
    "c": 0.21855,
    "h": 302.4
  },
  "luminance": 0.10193
}

Semantic roles & 50–950 ramp

primary
#7C2DC5
secondary
#A5CE80
accent
#E64291
background
#FAF7FD
surface
#F5EDFA
border
#CFC8D3
text
#110815
muted
#807B83

Preview Lab

Preview with #7C2DC5

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

Preview Lab → · Contrast checker → · Palette generator →

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