#7C5CE9#7C5CE9

#7C5CE9 is a mid, highly saturated violet. Relative luminance 0.178; OKLCH L 58.2% C 0.203 H 288.9°. Best body text is #FFFFFF at 4.60:1 contrast (WCAG AA passes).

Color values

HEX#7C5CE9
RGBrgb(124, 92, 233)
HSLhsl(254, 76%, 64%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(46.8%, 60.5%, 0%, 8.6%)
CIE-LABlab(49.28, 46.67, -67.24)
CIE-LCHlch(49.28, 81.85, 304.76°)
OKLaboklab(58.25% 0.066 -0.1923)
OKLCHoklch(58.25% 0.203 288.9)
XYZxyz(26.8431, 17.8215, 79.1005)
Luminance0.1782 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CE9 #C9E95C
analogous
#5C82E9 #7C5CE9 #C25CE9
triadic
#7C5CE9 #E97C5C #5CE97C
tetradic
#7C5CE9 #E95C82 #C9E95C #5CE9C2
square
#7C5CE9 #E95C82 #C9E95C #5CE9C2
split-complementary
#7C5CE9 #E9C25C #82E95C
monochromatic
#3B18B3 #5126E2 #7C5CE9 #A792F0 #D3C8F8

Accessibility & contrast

On white

4.60
#7C5CE9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.56
#7C5CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CE9
4.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CE9#FFFFFF#000000##FFFFFF
##7C5CE91.004.604.564.60
#FFFFFF4.601.0021.001.00
#0000004.5621.001.0021.00
##FFFFFF4.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EE
Deuteranopia (green-blind)
#0072E6
Tritanopia (blue-blind)
#597D9A
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c5ce9;
/* rgb */ color: rgb(124, 92, 233);
/* oklch */ color: oklch(58.2% 0.203 288.9);
Tailwind
colors: {
  custom: {
    50: '#a98bf1',
    500: '#7c5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ce9;
$custom-light: #a98bf1;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ce9",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 253.617,
    "s": 76.216,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58247,
    "c": 0.20328,
    "h": 288.9
  },
  "luminance": 0.17823
}

Semantic roles & 50–950 ramp

primary
#7C5CE9
secondary
#DEE9B8
accent
#D80DAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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