#7C3DB8#7C3DB8

#7C3DB8 is a mid, vivid violet. Relative luminance 0.111; OKLCH L 50.2% C 0.187 H 303.9°. Best body text is #FFFFFF at 6.53:1 contrast (WCAG AA passes).

Color values

HEX#7C3DB8
RGBrgb(124, 61, 184)
HSLhsl(271, 50%, 48%)
HSVhsv(271, 67%, 72%)
CMYKcmyk(32.6%, 66.8%, 0%, 27.8%)
CIE-LABlab(39.72, 50.27, -54.54)
CIE-LCHlch(39.72, 74.17, 312.67°)
OKLaboklab(50.24% 0.104 -0.1549)
OKLCHoklch(50.24% 0.187 303.9)
XYZxyz(18.6307, 11.0833, 46.4959)
Luminance0.1108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C3DB8 #79B83D
analogous
#3F3DB8 #7C3DB8 #B83DB6
triadic
#7C3DB8 #B87C3D #3DB87C
tetradic
#7C3DB8 #B83F3D #79B83D #3DB6B8
square
#7C3DB8 #B83F3D #79B83D #3DB6B8
split-complementary
#7C3DB8 #B6B83D #3DB83F
monochromatic
#3E1F5C #5D2E8A #7C3DB8 #9A66CC #B994DB

Accessibility & contrast

On white

6.53
#7C3DB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.22
#7C3DB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C3DB8
6.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C3DB8#FFFFFF#000000##FFFFFF
##7C3DB81.006.533.226.53
#FFFFFF6.531.0021.001.00
#0000003.2221.001.0021.00
##FFFFFF6.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005CBC
Deuteranopia (green-blind)
#0F5DB5
Tritanopia (blue-blind)
#715875
Achromatopsia (no color)
#5E5E5E

Design tokens & code

CSS
--color: #7c3db8;
/* rgb */ color: rgb(124, 61, 184);
/* oklch */ color: oklch(50.2% 0.187 303.9);
Tailwind
colors: {
  custom: {
    50: '#a677ce',
    500: '#7c3db8',
    950: '#000000',
  },
}
SCSS
$custom: #7c3db8;
$custom-light: #a677ce;
$custom-dark: #000000;
JSON
{
  "hex": "#7c3db8",
  "rgb": {
    "r": 124,
    "g": 61,
    "b": 184
  },
  "hsl": {
    "h": 270.732,
    "s": 50.204,
    "l": 48.039
  },
  "oklch": {
    "l": 0.50236,
    "c": 0.18655,
    "h": 303.9
  },
  "luminance": 0.11083
}

Semantic roles & 50–950 ramp

primary
#7C3DB8
secondary
#A8C78A
accent
#DA4E92
background
#FAF7FC
surface
#F4EDF9
border
#CEC8D2
text
#100914
muted
#7F7B82

Preview Lab

Preview with #7C3DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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