#7C5CE7#7C5CE7

#7C5CE7 is a mid, highly saturated violet. Relative luminance 0.177; OKLCH L 58.1% C 0.201 H 289.2°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7C5CE7
RGBrgb(124, 92, 231)
HSLhsl(254, 74%, 63%)
HSVhsv(254, 60%, 91%)
CMYKcmyk(46.3%, 60.2%, 0%, 9.4%)
CIE-LABlab(49.14, 46.11, -66.34)
CIE-LCHlch(49.14, 80.79, 304.80°)
OKLaboklab(58.1% 0.0661 -0.1896)
OKLCHoklch(58.1% 0.201 289.2)
XYZxyz(26.5590, 17.7079, 77.6044)
Luminance0.1771 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5CE7 #C7E75C
analogous
#5C81E7 #7C5CE7 #C15CE7
triadic
#7C5CE7 #E77C5C #5CE77C
tetradic
#7C5CE7 #E75C81 #C7E75C #5CE7C1
square
#7C5CE7 #E75C81 #C7E75C #5CE7C1
split-complementary
#7C5CE7 #E7C15C #81E75C
monochromatic
#3C1AAF #5127DF #7C5CE7 #A791EF #D2C7F7

Accessibility & contrast

On white

4.62
#7C5CE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#7C5CE7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5CE7
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5CE7#FFFFFF#000000##FFFFFF
##7C5CE71.004.624.544.62
#FFFFFF4.621.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0078EB
Deuteranopia (green-blind)
#0071E4
Tritanopia (blue-blind)
#5A7C99
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7c5ce7;
/* rgb */ color: rgb(124, 92, 231);
/* oklch */ color: oklch(58.1% 0.201 289.2);
Tailwind
colors: {
  custom: {
    50: '#a98bef',
    500: '#7c5ce7',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ce7;
$custom-light: #a98bef;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ce7",
  "rgb": {
    "r": 124,
    "g": 92,
    "b": 231
  },
  "hsl": {
    "h": 253.813,
    "s": 74.332,
    "l": 63.333
  },
  "oklch": {
    "l": 0.58102,
    "c": 0.20081,
    "h": 289.2
  },
  "luminance": 0.17709
}

Semantic roles & 50–950 ramp

primary
#7C5CE7
secondary
#DDE8B7
accent
#D60FA9
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5CE7

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

Preview Lab → · Contrast checker → · Palette generator →

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