#7C4DCB#7C4DCB

#7C4DCB is a mid, vivid violet. Relative luminance 0.139; OKLCH L 53.8% C 0.187 H 296.8°. Best body text is #FFFFFF at 5.55:1 contrast (WCAG AA passes).

Color values

HEX#7C4DCB
RGBrgb(124, 77, 203)
HSLhsl(262, 55%, 55%)
HSVhsv(262, 62%, 80%)
CMYKcmyk(38.9%, 62.1%, 0%, 20.4%)
CIE-LABlab(44.10, 46.76, -58.54)
CIE-LCHlch(44.10, 74.92, 308.62°)
OKLaboklab(53.81% 0.0843 -0.1667)
OKLCHoklch(53.81% 0.187 296.8)
XYZxyz(21.7428, 13.9043, 58.0266)
Luminance0.1391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DCB #9CCB4D
analogous
#4D5DCB #7C4DCB #BB4DCB
triadic
#7C4DCB #CB7C4D #4DCB7C
tetradic
#7C4DCB #CB4D5D #9CCB4D #4DCBBB
square
#7C4DCB #CB4D5D #9CCB4D #4DCBBB
split-complementary
#7C4DCB #CBBB4D #5DCB4D
monochromatic
#44247A #5E31A9 #7C4DCB #9F7CD9 #C2ACE7

Accessibility & contrast

On white

5.55
#7C4DCB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.78
#7C4DCB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4DCB
5.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4DCB#FFFFFF#000000##FFFFFF
##7C4DCB1.005.553.785.55
#FFFFFF5.551.0021.001.00
#0000003.7821.001.0021.00
##FFFFFF5.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0069CF
Deuteranopia (green-blind)
#0667C8
Tritanopia (blue-blind)
#696985
Achromatopsia (no color)
#686868

Design tokens & code

CSS
--color: #7c4dcb;
/* rgb */ color: rgb(124, 77, 203);
/* oklch */ color: oklch(53.8% 0.187 296.8);
Tailwind
colors: {
  custom: {
    50: '#a781dc',
    500: '#7c4dcb',
    950: '#000000',
  },
}
SCSS
$custom: #7c4dcb;
$custom-light: #a781dc;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4dcb",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 203
  },
  "hsl": {
    "h": 262.381,
    "s": 54.783,
    "l": 54.902
  },
  "oklch": {
    "l": 0.53814,
    "c": 0.18676,
    "h": 296.8
  },
  "luminance": 0.13905
}

Semantic roles & 50–950 ramp

primary
#7C4DCB
secondary
#C1D49F
accent
#DE4AA7
background
#FAF8FD
surface
#F4EFFB
border
#CECAD4
text
#100A15
muted
#7F7C83

Preview Lab

Preview with #7C4DCB

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

Preview Lab → · Contrast checker → · Palette generator →

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