#7C5EF5#7C5EF5

#7C5EF5 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.4% C 0.215 H 287.0°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7C5EF5
RGBrgb(124, 94, 245)
HSLhsl(252, 88%, 66%)
HSVhsv(252, 62%, 96%)
CMYKcmyk(49.4%, 61.6%, 0%, 3.9%)
CIE-LABlab(50.55, 48.95, -71.91)
CIE-LCHlch(50.55, 86.99, 304.25°)
OKLaboklab(59.44% 0.0632 -0.206)
OKLCHoklch(59.44% 0.215 287)
XYZxyz(28.7915, 18.8817, 88.4960)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5EF5 #D7F55E
analogous
#5E8CF5 #7C5EF5 #C85EF5
triadic
#7C5EF5 #F57C5E #5EF57C
tetradic
#7C5EF5 #F55E8C #D7F55E #5EF5C8
square
#7C5EF5 #F55E8C #D7F55E #5EF5C8
split-complementary
#7C5EF5 #F5C85E #8CF55E
monochromatic
#330DCC #4D24F1 #7C5EF5 #AB98F9 #DAD1FC

Accessibility & contrast

On white

4.40
#7C5EF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#7C5EF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5EF5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5EF5#FFFFFF#000000##000000
##7C5EF51.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFA
Deuteranopia (green-blind)
#0074F2
Tritanopia (blue-blind)
#5082A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7c5ef5;
/* rgb */ color: rgb(124, 94, 245);
/* oklch */ color: oklch(59.4% 0.215 287.0);
Tailwind
colors: {
  custom: {
    50: '#ab8df9',
    500: '#7c5ef5',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ef5;
$custom-light: #ab8df9;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ef5",
  "rgb": {
    "r": 124,
    "g": 94,
    "b": 245
  },
  "hsl": {
    "h": 251.921,
    "s": 88.304,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59441,
    "c": 0.21546,
    "h": 287
  },
  "luminance": 0.18883
}

Semantic roles & 50–950 ramp

primary
#7C5EF5
secondary
#E6F0BF
accent
#E501B8
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5EF5

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

Preview Lab → · Contrast checker → · Palette generator →

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