#7C5CD5#7C5CD5

#7C5CD5 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.178 H 291.9°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7C5CD5
RGBrgb(124, 92, 213)
HSLhsl(256, 59%, 60%)
HSVhsv(256, 57%, 84%)
CMYKcmyk(41.8%, 56.8%, 0%, 16.5%)
CIE-LABlab(47.93, 41.09, -58.08)
CIE-LCHlch(47.93, 71.15, 305.28°)
OKLaboklab(56.83% 0.0666 -0.1653)
OKLCHoklch(56.83% 0.178 291.9)
XYZxyz(24.1463, 16.7428, 64.8973)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CD5 #B5D55C
analogous
#5C79D5 #7C5CD5 #B95CD5
triadic
#7C5CD5 #D57C5C #5CD57C
tetradic
#7C5CD5 #D55C79 #B5D55C #5CD5B9
square
#7C5CD5 #D55C79 #B5D55C #5CD5B9
split-complementary
#7C5CD5 #D5B95C #79D55C
monochromatic
#422591 #5832C2 #7C5CD5 #A38DE2 #CABDEE

Accessibility & contrast

On white

4.83
#7C5CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7C5CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CD5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CD5#FFFFFF#000000##FFFFFF
##7C5CD51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1474D9
Deuteranopia (green-blind)
#206FD2
Tritanopia (blue-blind)
#637690
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7c5cd5;
/* rgb */ color: rgb(124, 92, 213);
/* oklch */ color: oklch(56.8% 0.178 291.9);
Tailwind
colors: {
  custom: {
    50: '#a78be3',
    500: '#7c5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #7c5cd5;
$custom-light: #a78be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5cd5",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 255.868,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.56834,
    "c": 0.17824,
    "h": 291.9
  },
  "luminance": 0.16743
}

Semantic roles & 50–950 ramp

primary
#7C5CD5
secondary
#D1DEAF
accent
#E246B9
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84

Preview Lab

Preview with #7C5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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