#7C4DAF#7C4DAF

#7C4DAF is a mid, vivid violet. Relative luminance 0.127; OKLCH L 51.9% C 0.153 H 303.7°. Best body text is #FFFFFF at 5.94:1 contrast (WCAG AA passes).

Color values

HEX#7C4DAF
RGBrgb(124, 77, 175)
HSLhsl(269, 39%, 49%)
HSVhsv(269, 56%, 69%)
CMYKcmyk(29.1%, 56%, 0%, 31.4%)
CIE-LABlab(42.29, 39.57, -45.10)
CIE-LCHlch(42.29, 60.00, 311.26°)
OKLaboklab(51.92% 0.0847 -0.1272)
OKLCHoklch(51.92% 0.153 303.7)
XYZxyz(18.7022, 12.6880, 42.0129)
Luminance0.1269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C4DAF #80AF4D
analogous
#4D4FAF #7C4DAF #AD4DAF
triadic
#7C4DAF #AF7C4D #4DAF7C
tetradic
#7C4DAF #AF4D4F #80AF4D #4DAFAD
square
#7C4DAF #AF4D4F #80AF4D #4DAFAD
split-complementary
#7C4DAF #AFAD4D #4FAF4D
monochromatic
#40285A #5E3A85 #7C4DAF #9B76C3 #BAA1D6

Accessibility & contrast

On white

5.94
#7C4DAF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.54
#7C4DAF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C4DAF
5.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C4DAF#FFFFFF#000000##FFFFFF
##7C4DAF1.005.943.545.94
#FFFFFF5.941.0021.001.00
#0000003.5421.001.0021.00
##FFFFFF5.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2863B2
Deuteranopia (green-blind)
#3864AD
Tritanopia (blue-blind)
#736076
Achromatopsia (no color)
#646464

Design tokens & code

CSS
--color: #7c4daf;
/* rgb */ color: rgb(124, 77, 175);
/* oklch */ color: oklch(51.9% 0.153 303.7);
Tailwind
colors: {
  custom: {
    50: '#a580c7',
    500: '#7c4daf',
    950: '#000000',
  },
}
SCSS
$custom: #7c4daf;
$custom-light: #a580c7;
$custom-dark: #000000;
JSON
{
  "hex": "#7c4daf",
  "rgb": {
    "r": 124,
    "g": 77,
    "b": 175
  },
  "hsl": {
    "h": 268.776,
    "s": 38.889,
    "l": 49.412
  },
  "oklch": {
    "l": 0.51916,
    "c": 0.15286,
    "h": 303.7
  },
  "luminance": 0.12688
}

Semantic roles & 50–950 ramp

primary
#7C4DAF
secondary
#ADC395
accent
#CF5996
background
#FAF7FC
surface
#F4EEF8
border
#CEC9D1
text
#100A13
muted
#7F7C82

Preview Lab

Preview with #7C4DAF

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

Preview Lab → · Contrast checker → · Palette generator →

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