#7C5CE6#7C5CE6

#7C5CE6 is a mid, vivid violet. Relative luminance 0.177; OKLCH L 58.0% C 0.200 H 289.4°. Best body text is #FFFFFF at 4.64:1 contrast (WCAG AA passes).

Color values

HEX#7C5CE6
RGBrgb(124, 92, 230)
HSLhsl(254, 73%, 63%)
HSVhsv(254, 60%, 90%)
CMYKcmyk(46.1%, 60%, 0%, 9.8%)
CIE-LABlab(49.07, 45.83, -65.89)
CIE-LCHlch(49.07, 80.26, 304.82°)
OKLaboklab(58.03% 0.0661 -0.1883)
OKLCHoklch(58.03% 0.2 289.4)
XYZxyz(26.4182, 17.6515, 76.8627)
Luminance0.1765 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CE6 #C6E65C
analogous
#5C81E6 #7C5CE6 #C15CE6
triadic
#7C5CE6 #E67C5C #5CE67C
tetradic
#7C5CE6 #E65C81 #C6E65C #5CE6C1
square
#7C5CE6 #E65C81 #C6E65C #5CE6C1
split-complementary
#7C5CE6 #E6C15C #81E65C
monochromatic
#3D1BAD #5127DE #7C5CE6 #A791EE #D1C6F6

Accessibility & contrast

On white

4.64
#7C5CE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.53
#7C5CE6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CE6
4.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CE6#FFFFFF#000000##FFFFFF
##7C5CE61.004.644.534.64
#FFFFFF4.641.0021.001.00
#0000004.5321.001.0021.00
##FFFFFF4.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077EA
Deuteranopia (green-blind)
#0071E3
Tritanopia (blue-blind)
#5A7C98
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c5ce6;
/* rgb */ color: rgb(124, 92, 230);
/* oklch */ color: oklch(58.0% 0.200 289.4);
Tailwind
colors: {
  custom: {
    50: '#a98bef',
    500: '#7c5ce6',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ce6;
$custom-light: #a98bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ce6",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 230
  },
  "hsl": {
    "h": 253.913,
    "s": 73.404,
    "l": 63.137
  },
  "oklch": {
    "l": 0.58029,
    "c": 0.19958,
    "h": 289.4
  },
  "luminance": 0.17653
}

Semantic roles & 50–950 ramp

primary
#7C5CE6
secondary
#DCE8B6
accent
#D610A8
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7C5CE6

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

Preview Lab → · Contrast checker → · Palette generator →

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