#7C5CE4#7C5CE4

#7C5CE4 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.9% C 0.197 H 289.6°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7C5CE4
RGBrgb(124, 92, 228)
HSLhsl(254, 72%, 63%)
HSVhsv(254, 60%, 89%)
CMYKcmyk(45.6%, 59.6%, 0%, 10.6%)
CIE-LABlab(48.93, 45.27, -64.98)
CIE-LCHlch(48.93, 79.20, 304.86°)
OKLaboklab(57.89% 0.0662 -0.1856)
OKLCHoklch(57.89% 0.197 289.6)
XYZxyz(26.1389, 17.5398, 75.3920)
Luminance0.1754 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CE4 #C4E45C
analogous
#5C80E4 #7C5CE4 #C05CE4
triadic
#7C5CE4 #E47C5C #5CE47C
tetradic
#7C5CE4 #E45C80 #C4E45C #5CE4C0
square
#7C5CE4 #E45C80 #C4E45C #5CE4C0
split-complementary
#7C5CE4 #E4C05C #80E45C
monochromatic
#3D1CAA #5227DB #7C5CE4 #A691ED #D0C5F5

Accessibility & contrast

On white

4.66
#7C5CE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7C5CE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CE4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CE4#FFFFFF#000000##FFFFFF
##7C5CE41.004.664.514.66
#FFFFFF4.661.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#5C7B97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5ce4;
/* rgb */ color: rgb(124, 92, 228);
/* oklch */ color: oklch(57.9% 0.197 289.6);
Tailwind
colors: {
  custom: {
    50: '#a98bed',
    500: '#7c5ce4',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ce4;
$custom-light: #a98bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ce4",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 228
  },
  "hsl": {
    "h": 254.118,
    "s": 71.579,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57885,
    "c": 0.19709,
    "h": 289.6
  },
  "luminance": 0.17541
}

Semantic roles & 50–950 ramp

primary
#7C5CE4
secondary
#DBE7B5
accent
#D412A6
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7C5CE4

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

Preview Lab → · Contrast checker → · Palette generator →

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