#7C4EA2#7C4EA2

#7C4EA2 is a mid, vivid violet. Relative luminance 0.123; OKLCH L 51.3% C 0.135 H 307.6°. Best body text is #FFFFFF at 6.05:1 contrast (WCAG AA passes).

Color values

HEX#7C4EA2
RGBrgb(124, 78, 162)
HSLhsl(273, 35%, 47%)
HSVhsv(273, 52%, 64%)
CMYKcmyk(23.5%, 51.9%, 0%, 36.5%)
CIE-LABlab(41.76, 35.81, -38.25)
CIE-LCHlch(41.76, 52.39, 313.12°)
OKLaboklab(51.28% 0.0825 -0.1072)
OKLCHoklch(51.28% 0.135 307.6)
XYZxyz(17.5569, 12.3427, 35.6329)
Luminance0.1234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4EA2 #74A24E
analogous
#524EA2 #7C4EA2 #A24E9E
triadic
#7C4EA2 #A27C4E #4EA27C
tetradic
#7C4EA2 #A2524E #74A24E #4E9EA2
square
#7C4EA2 #A2524E #74A24E #4E9EA2
split-complementary
#7C4EA2 #9EA24E #4EA252
monochromatic
#3D264F #5C3A79 #7C4EA2 #9A72BB #B89BCF

Accessibility & contrast

On white

6.05
#7C4EA2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.47
#7C4EA2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4EA2
6.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4EA2#FFFFFF#000000##FFFFFF
##7C4EA21.006.053.476.05
#FFFFFF6.051.0021.001.00
#0000003.4721.001.0021.00
##FFFFFF6.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3661A5
Deuteranopia (green-blind)
#4463A0
Tritanopia (blue-blind)
#765D70
Achromatopsia (no color)
#626262

Design tokens & code

CSS
--color: #7c4ea2;
/* rgb */ color: rgb(124, 78, 162);
/* oklch */ color: oklch(51.3% 0.135 307.6);
Tailwind
colors: {
  custom: {
    50: '#a481be',
    500: '#7c4ea2',
    950: '#000000',
  },
}
SCSS
$custom: #7c4ea2;
$custom-light: #a481be;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4ea2",
  "rgb": {
    "r": 124,
    "g": 78,
    "b": 162
  },
  "hsl": {
    "h": 272.857,
    "s": 35,
    "l": 47.059
  },
  "oklch": {
    "l": 0.51279,
    "c": 0.13526,
    "h": 307.6
  },
  "luminance": 0.12342
}

Semantic roles & 50–950 ramp

primary
#7C4EA2
secondary
#A4BC90
accent
#CB5D8F
background
#FAF7FB
surface
#F4EEF7
border
#CEC9D0
text
#0F0A12
muted
#7F7C81

Preview Lab

Preview with #7C4EA2

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

Preview Lab → · Contrast checker → · Palette generator →

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