#7C5CE5#7C5CE5

#7C5CE5 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.0% C 0.198 H 289.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7C5CE5
RGBrgb(124, 92, 229)
HSLhsl(254, 72%, 63%)
HSVhsv(254, 60%, 90%)
CMYKcmyk(45.9%, 59.8%, 0%, 10.2%)
CIE-LABlab(49.00, 45.55, -65.44)
CIE-LCHlch(49.00, 79.73, 304.84°)
OKLaboklab(57.96% 0.0662 -0.187)
OKLCHoklch(57.96% 0.198 289.5)
XYZxyz(26.2782, 17.5955, 76.1252)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CE5 #C5E55C
analogous
#5C80E5 #7C5CE5 #C15CE5
triadic
#7C5CE5 #E57C5C #5CE57C
tetradic
#7C5CE5 #E55C80 #C5E55C #5CE5C1
square
#7C5CE5 #E55C80 #C5E55C #5CE5C1
split-complementary
#7C5CE5 #E5C15C #80E55C
monochromatic
#3D1BAB #5227DD #7C5CE5 #A691ED #D1C6F6

Accessibility & contrast

On white

4.65
#7C5CE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7C5CE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CE5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CE5#FFFFFF#000000##FFFFFF
##7C5CE51.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#5B7B98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5ce5;
/* rgb */ color: rgb(124, 92, 229);
/* oklch */ color: oklch(58.0% 0.198 289.5);
Tailwind
colors: {
  custom: {
    50: '#a98bee',
    500: '#7c5ce5',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ce5;
$custom-light: #a98bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ce5",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 229
  },
  "hsl": {
    "h": 254.015,
    "s": 72.487,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57957,
    "c": 0.19833,
    "h": 289.5
  },
  "luminance": 0.17597
}

Semantic roles & 50–950 ramp

primary
#7C5CE5
secondary
#DCE7B6
accent
#D511A7
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7C5CE5

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

Preview Lab → · Contrast checker → · Palette generator →

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