#7C5AF7#7C5AF7

#7C5AF7 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 59.0% C 0.223 H 287.5°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7C5AF7
RGBrgb(124, 90, 247)
HSLhsl(253, 91%, 66%)
HSVhsv(253, 64%, 97%)
CMYKcmyk(49.8%, 63.6%, 0%, 3.1%)
CIE-LABlab(49.87, 51.71, -74.12)
CIE-LCHlch(49.87, 90.38, 304.90°)
OKLaboklab(59% 0.0669 -0.2125)
OKLCHoklch(59% 0.223 287.5)
XYZxyz(28.7519, 18.3115, 89.9971)
Luminance0.1831 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AF7 #D5F75A
analogous
#5A86F7 #7C5AF7 #CB5AF7
triadic
#7C5AF7 #F77C5A #5AF77C
tetradic
#7C5AF7 #F75A86 #D5F75A #5AF7CB
square
#7C5AF7 #F75A86 #D5F75A #5AF7CB
split-complementary
#7C5AF7 #F7CB5A #86F75A
monochromatic
#340ACD #4E20F4 #7C5AF7 #AA94FA #D9CFFD

Accessibility & contrast

On white

4.50
#7C5AF7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#7C5AF7 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5AF7
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AF7#FFFFFF#000000##000000
##7C5AF71.004.504.664.66
#FFFFFF4.501.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFC
Deuteranopia (green-blind)
#0072F4
Tritanopia (blue-blind)
#4F80A1
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7c5af7;
/* rgb */ color: rgb(124, 90, 247);
/* oklch */ color: oklch(59.0% 0.223 287.5);
Tailwind
colors: {
  custom: {
    50: '#ab8afb',
    500: '#7c5af7',
    950: '#000000',
  },
}
SCSS
$custom: #7c5af7;
$custom-light: #ab8afb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5af7",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 252.994,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.58995,
    "c": 0.22279,
    "h": 287.5
  },
  "luminance": 0.18313
}

Semantic roles & 50–950 ramp

primary
#7C5AF7
secondary
#E5F0BD
accent
#E600B4
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7C5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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