#7C4EAF#7C4EAF

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

Color values

HEX#7C4EAF
RGBrgb(124, 78, 175)
HSLhsl(268, 38%, 50%)
HSVhsv(268, 55%, 69%)
CMYKcmyk(29.1%, 55.4%, 0%, 31.4%)
CIE-LABlab(42.50, 39.01, -44.76)
CIE-LCHlch(42.50, 59.37, 311.07°)
OKLaboklab(52.08% 0.0834 -0.1262)
OKLCHoklch(52.08% 0.151 303.5)
XYZxyz(18.7727, 12.8290, 42.0364)
Luminance0.1283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4EAF #81AF4E
analogous
#4E50AF #7C4EAF #AD4EAF
triadic
#7C4EAF #AF7C4E #4EAF7C
tetradic
#7C4EAF #AF4E50 #81AF4E #4EAFAD
square
#7C4EAF #AF4E50 #81AF4E #4EAFAD
split-complementary
#7C4EAF #AFAD4E #50AF4E
monochromatic
#40285A #5E3B85 #7C4EAF #9B78C3 #BAA2D6

Accessibility & contrast

On white

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

On black

3.57
#7C4EAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##7C4EAF#FFFFFF#000000##FFFFFF
##7C4EAF1.005.893.575.89
#FFFFFF5.891.0021.001.00
#0000003.5721.001.0021.00
##FFFFFF5.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A63B2
Deuteranopia (green-blind)
#3A64AD
Tritanopia (blue-blind)
#736177
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c4eaf;
/* rgb */ color: rgb(124, 78, 175);
/* oklch */ color: oklch(52.1% 0.151 303.5);
Tailwind
colors: {
  custom: {
    50: '#a581c7',
    500: '#7c4eaf',
    950: '#000000',
  },
}
SCSS
$custom: #7c4eaf;
$custom-light: #a581c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4eaf",
  "rgb": {
    "r": 124,
    "g": 78,
    "b": 175
  },
  "hsl": {
    "h": 268.454,
    "s": 38.34,
    "l": 49.608
  },
  "oklch": {
    "l": 0.52075,
    "c": 0.15129,
    "h": 303.5
  },
  "luminance": 0.12829
}

Semantic roles & 50–950 ramp

primary
#7C4EAF
secondary
#AEC396
accent
#CE5A97
background
#FAF8FC
surface
#F4EFF8
border
#CECAD1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7C4EAF

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

Preview Lab → · Contrast checker → · Palette generator →

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