#7C5CE8#7C5CE8

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

Color values

HEX#7C5CE8
RGBrgb(124, 92, 232)
HSLhsl(254, 75%, 64%)
HSVhsv(254, 60%, 91%)
CMYKcmyk(46.6%, 60.3%, 0%, 9%)
CIE-LABlab(49.21, 46.39, -66.79)
CIE-LCHlch(49.21, 81.32, 304.78°)
OKLaboklab(58.17% 0.066 -0.1909)
OKLCHoklch(58.17% 0.202 289.1)
XYZxyz(26.7007, 17.7645, 78.3503)
Luminance0.1777 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CE8 #C8E85C
analogous
#5C82E8 #7C5CE8 #C25CE8
triadic
#7C5CE8 #E87C5C #5CE87C
tetradic
#7C5CE8 #E85C82 #C8E85C #5CE8C2
square
#7C5CE8 #E85C82 #C8E85C #5CE8C2
split-complementary
#7C5CE8 #E8C25C #82E85C
monochromatic
#3C19B1 #5126E0 #7C5CE8 #A792F0 #D2C7F7

Accessibility & contrast

On white

4.61
#7C5CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#7C5CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CE8
4.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CE8#FFFFFF#000000##FFFFFF
##7C5CE81.004.614.554.61
#FFFFFF4.611.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078ED
Deuteranopia (green-blind)
#0071E5
Tritanopia (blue-blind)
#597C99
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c5ce8;
/* rgb */ color: rgb(124, 92, 232);
/* oklch */ color: oklch(58.2% 0.202 289.1);
Tailwind
colors: {
  custom: {
    50: '#a98bf0',
    500: '#7c5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ce8;
$custom-light: #a98bf0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ce8",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 253.714,
    "s": 75.269,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58174,
    "c": 0.20204,
    "h": 289.1
  },
  "luminance": 0.17766
}

Semantic roles & 50–950 ramp

primary
#7C5CE8
secondary
#DDE9B7
accent
#D70EA9
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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