#7C4ABC#7C4ABC

#7C4ABC is a mid, vivid violet. Relative luminance 0.128; OKLCH L 52.3% C 0.173 H 300.8°. Best body text is #FFFFFF at 5.89:1 contrast (WCAG AA passes).

Color values

HEX#7C4ABC
RGBrgb(124, 74, 188)
HSLhsl(266, 46%, 51%)
HSVhsv(266, 61%, 74%)
CMYKcmyk(34%, 60.6%, 0%, 26.3%)
CIE-LABlab(42.48, 44.51, -52.43)
CIE-LCHlch(42.48, 68.77, 310.33°)
OKLaboklab(52.32% 0.0885 -0.1487)
OKLCHoklch(52.32% 0.173 300.8)
XYZxyz(19.8359, 12.8134, 48.9954)
Luminance0.1281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4ABC #8ABC4A
analogous
#4A51BC #7C4ABC #B54ABC
triadic
#7C4ABC #BC7C4A #4ABC7C
tetradic
#7C4ABC #BC4A51 #8ABC4A #4ABCB5
square
#7C4ABC #BC4A51 #8ABC4A #4ABCB5
split-complementary
#7C4ABC #BCB54A #51BC4A
monochromatic
#422666 #5F3693 #7C4ABC #9C77CD #BDA3DD

Accessibility & contrast

On white

5.89
#7C4ABC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.56
#7C4ABC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4ABC
5.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4ABC#FFFFFF#000000##FFFFFF
##7C4ABC1.005.893.565.89
#FFFFFF5.891.0021.001.00
#0000003.5621.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0064C0
Deuteranopia (green-blind)
#2564B9
Tritanopia (blue-blind)
#6F627C
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c4abc;
/* rgb */ color: rgb(124, 74, 188);
/* oklch */ color: oklch(52.3% 0.173 300.8);
Tailwind
colors: {
  custom: {
    50: '#a67fd1',
    500: '#7c4abc',
    950: '#000000',
  },
}
SCSS
$custom: #7c4abc;
$custom-light: #a67fd1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4abc",
  "rgb": {
    "r": 124,
    "g": 74,
    "b": 188
  },
  "hsl": {
    "h": 266.316,
    "s": 45.968,
    "l": 51.373
  },
  "oklch": {
    "l": 0.52319,
    "c": 0.17308,
    "h": 300.8
  },
  "luminance": 0.12813
}

Semantic roles & 50–950 ramp

primary
#7C4ABC
secondary
#B4CA98
accent
#D6529C
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7C4ABC

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

Preview Lab → · Contrast checker → · Palette generator →

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