#7C4ABB#7C4ABB

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

Color values

HEX#7C4ABB
RGBrgb(124, 74, 187)
HSLhsl(267, 45%, 51%)
HSVhsv(267, 60%, 73%)
CMYKcmyk(33.7%, 60.4%, 0%, 26.7%)
CIE-LABlab(42.42, 44.25, -51.95)
CIE-LCHlch(42.42, 68.24, 310.43°)
OKLaboklab(52.25% 0.0886 -0.1473)
OKLCHoklch(52.25% 0.172 301)
XYZxyz(19.7285, 12.7704, 48.4296)
Luminance0.1277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4ABB #89BB4A
analogous
#4A50BB #7C4ABB #B54ABB
triadic
#7C4ABB #BB7C4A #4ABB7C
tetradic
#7C4ABB #BB4A50 #89BB4A #4ABBB5
square
#7C4ABB #BB4A50 #89BB4A #4ABBB5
split-complementary
#7C4ABB #BBB54A #50BB4A
monochromatic
#422665 #5F3791 #7C4ABB #9C76CC #BCA3DC

Accessibility & contrast

On white

5.91
#7C4ABB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.55
#7C4ABB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4ABB
5.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4ABB#FFFFFF#000000##FFFFFF
##7C4ABB1.005.913.555.91
#FFFFFF5.911.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0364BF
Deuteranopia (green-blind)
#2663B8
Tritanopia (blue-blind)
#6F627B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c4abb;
/* rgb */ color: rgb(124, 74, 187);
/* oklch */ color: oklch(52.3% 0.172 301.0);
Tailwind
colors: {
  custom: {
    50: '#a67fd0',
    500: '#7c4abb',
    950: '#000000',
  },
}
SCSS
$custom: #7c4abb;
$custom-light: #a67fd0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4abb",
  "rgb": {
    "r": 124,
    "g": 74,
    "b": 187
  },
  "hsl": {
    "h": 266.549,
    "s": 45.382,
    "l": 51.176
  },
  "oklch": {
    "l": 0.5225,
    "c": 0.17189,
    "h": 301
  },
  "luminance": 0.12771
}

Semantic roles & 50–950 ramp

primary
#7C4ABB
secondary
#B3C997
accent
#D5539B
background
#FAF7FC
surface
#F4EEF9
border
#CEC9D2
text
#100A14
muted
#7F7C82

Preview Lab

Preview with #7C4ABB

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

Preview Lab → · Contrast checker → · Palette generator →

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