#7C4ABA#7C4ABA

#7C4ABA is a mid, vivid violet. Relative luminance 0.127; OKLCH L 52.2% C 0.171 H 301.3°. Best body text is #FFFFFF at 5.92:1 contrast (WCAG AA passes).

Color values

HEX#7C4ABA
RGBrgb(124, 74, 186)
HSLhsl(267, 45%, 51%)
HSVhsv(267, 60%, 73%)
CMYKcmyk(33.3%, 60.2%, 0%, 27.1%)
CIE-LABlab(42.35, 44.00, -51.47)
CIE-LCHlch(42.35, 67.71, 310.53°)
OKLaboklab(52.18% 0.0886 -0.1459)
OKLCHoklch(52.18% 0.171 301.3)
XYZxyz(19.6218, 12.7277, 47.8678)
Luminance0.1273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4ABA #88BA4A
analogous
#4A50BA #7C4ABA #B44ABA
triadic
#7C4ABA #BA7C4A #4ABA7C
tetradic
#7C4ABA #BA4A50 #88BA4A #4ABAB4
square
#7C4ABA #BA4A50 #88BA4A #4ABAB4
split-complementary
#7C4ABA #BAB44A #50BA4A
monochromatic
#412664 #5F3790 #7C4ABA #9C76CB #BCA3DC

Accessibility & contrast

On white

5.92
#7C4ABA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #7C4ABA
5.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4ABA#FFFFFF#000000##FFFFFF
##7C4ABA1.005.923.555.92
#FFFFFF5.921.0021.001.00
#0000003.5521.001.0021.00
##FFFFFF5.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0763BE
Deuteranopia (green-blind)
#2863B7
Tritanopia (blue-blind)
#6F617B
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c4aba;
/* rgb */ color: rgb(124, 74, 186);
/* oklch */ color: oklch(52.2% 0.171 301.3);
Tailwind
colors: {
  custom: {
    50: '#a67fcf',
    500: '#7c4aba',
    950: '#000000',
  },
}
SCSS
$custom: #7c4aba;
$custom-light: #a67fcf;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4aba",
  "rgb": {
    "r": 124,
    "g": 74,
    "b": 186
  },
  "hsl": {
    "h": 266.786,
    "s": 44.8,
    "l": 50.98
  },
  "oklch": {
    "l": 0.52182,
    "c": 0.17069,
    "h": 301.3
  },
  "luminance": 0.12728
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C4ABA

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

Preview Lab → · Contrast checker → · Palette generator →

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