#7C5AF6#7C5AF6

#7C5AF6 is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.9% C 0.222 H 287.6°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7C5AF6
RGBrgb(124, 90, 246)
HSLhsl(253, 90%, 66%)
HSVhsv(253, 63%, 96%)
CMYKcmyk(49.6%, 63.4%, 0%, 3.5%)
CIE-LABlab(49.80, 51.43, -73.69)
CIE-LCHlch(49.80, 89.86, 304.92°)
OKLaboklab(58.92% 0.067 -0.2112)
OKLCHoklch(58.92% 0.222 287.6)
XYZxyz(28.5980, 18.2499, 89.1866)
Luminance0.1825 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AF6 #D4F65A
analogous
#5A86F6 #7C5AF6 #CA5AF6
triadic
#7C5AF6 #F67C5A #5AF67C
tetradic
#7C5AF6 #F65A86 #D4F65A #5AF6CA
square
#7C5AF6 #F65A86 #D4F65A #5AF6CA
split-complementary
#7C5AF6 #F6CA5A #86F65A
monochromatic
#350BCB #4E20F3 #7C5AF6 #AA94F9 #D8CEFC

Accessibility & contrast

On white

4.52
#7C5AF6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7C5AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7C5AF6
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AF6#FFFFFF#000000##000000
##7C5AF61.004.524.654.65
#FFFFFF4.521.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0072F3
Tritanopia (blue-blind)
#5080A0
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7c5af6;
/* rgb */ color: rgb(124, 90, 246);
/* oklch */ color: oklch(58.9% 0.222 287.6);
Tailwind
colors: {
  custom: {
    50: '#ab8afa',
    500: '#7c5af6',
    950: '#000000',
  },
}
SCSS
$custom: #7c5af6;
$custom-light: #ab8afa;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5af6",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 246
  },
  "hsl": {
    "h": 253.077,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.58918,
    "c": 0.22159,
    "h": 287.6
  },
  "luminance": 0.18251
}

Semantic roles & 50–950 ramp

primary
#7C5AF6
secondary
#E4F0BC
accent
#E600B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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