#7C3ED6#7C3ED6

#7C3ED6 is a mid, highly saturated violet. Relative luminance 0.126; OKLCH L 52.7% C 0.218 H 296.8°. Best body text is #FFFFFF at 5.97:1 contrast (WCAG AA passes).

Color values

HEX#7C3ED6
RGBrgb(124, 62, 214)
HSLhsl(264, 65%, 54%)
HSVhsv(264, 71%, 84%)
CMYKcmyk(42.1%, 71%, 0%, 16.1%)
CIE-LABlab(42.13, 57.22, -68.06)
CIE-LCHlch(42.13, 88.92, 310.05°)
OKLaboklab(52.66% 0.0984 -0.1946)
OKLCHoklch(52.66% 0.218 296.8)
XYZxyz(22.1692, 12.5849, 64.8664)
Luminance0.1258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C3ED6 #98D63E
analogous
#3E4CD6 #7C3ED6 #C83ED6
triadic
#7C3ED6 #D67C3E #3ED67C
tetradic
#7C3ED6 #D63E4C #98D63E #3ED6C8
square
#7C3ED6 #D63E4C #98D63E #3ED6C8
split-complementary
#7C3ED6 #D6C83E #4CD63E
monochromatic
#441B7F #5F26B1 #7C3ED6 #9E70E1 #C1A3EB

Accessibility & contrast

On white

5.97
#7C3ED6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.52
#7C3ED6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C3ED6
5.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C3ED6#FFFFFF#000000##FFFFFF
##7C3ED61.005.973.525.97
#FFFFFF5.971.0021.001.00
#0000003.5221.001.0021.00
##FFFFFF5.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064DA
Deuteranopia (green-blind)
#0061D3
Tritanopia (blue-blind)
#656486
Achromatopsia (no color)
#636363

Design tokens & code

CSS
--color: #7c3ed6;
/* rgb */ color: rgb(124, 62, 214);
/* oklch */ color: oklch(52.7% 0.218 296.8);
Tailwind
colors: {
  custom: {
    50: '#a978e4',
    500: '#7c3ed6',
    950: '#000000',
  },
}
SCSS
$custom: #7c3ed6;
$custom-light: #a978e4;
$custom-dark: #000000;
JSON
{
  "hex": "#7c3ed6",
  "rgb": {
    "r": 124,
    "g": 62,
    "b": 214
  },
  "hsl": {
    "h": 264.474,
    "s": 64.957,
    "l": 54.118
  },
  "oklch": {
    "l": 0.52658,
    "c": 0.21807,
    "h": 296.8
  },
  "luminance": 0.12585
}

Semantic roles & 50–950 ramp

primary
#7C3ED6
secondary
#BED898
accent
#E840A3
background
#FBF7FE
surface
#F6EEFC
border
#D0C9D5
text
#110916
muted
#807B84

Preview Lab

Preview with #7C3ED6

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

Preview Lab → · Contrast checker → · Palette generator →

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