#7C5AEB#7C5AEB

#7C5AEB is a mid, highly saturated violet. Relative luminance 0.176; OKLCH L 58.1% C 0.208 H 289.0°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7C5AEB
RGBrgb(124, 90, 235)
HSLhsl(254, 78%, 64%)
HSVhsv(254, 62%, 92%)
CMYKcmyk(47.2%, 61.7%, 0%, 7.8%)
CIE-LABlab(49.00, 48.34, -68.82)
CIE-LCHlch(49.00, 84.10, 305.09°)
OKLaboklab(58.09% 0.0679 -0.1969)
OKLCHoklch(58.09% 0.208 289)
XYZxyz(26.9594, 17.5945, 80.5567)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AEB #C9EB5A
analogous
#5A80EB #7C5AEB #C45AEB
triadic
#7C5AEB #EB7C5A #5AEB7C
tetradic
#7C5AEB #EB5A80 #C9EB5A #5AEBC4
square
#7C5AEB #EB5A80 #C9EB5A #5AEBC4
split-complementary
#7C5AEB #EBC45A #80EB5A
monochromatic
#3B16B5 #5123E4 #7C5AEB #A791F2 #D3C7F8

Accessibility & contrast

On white

4.65
#7C5AEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#7C5AEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5AEB
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AEB#FFFFFF#000000##FFFFFF
##7C5AEB1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077F0
Deuteranopia (green-blind)
#0071E8
Tritanopia (blue-blind)
#587C9A
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5aeb;
/* rgb */ color: rgb(124, 90, 235);
/* oklch */ color: oklch(58.1% 0.208 289.0);
Tailwind
colors: {
  custom: {
    50: '#aa8af2',
    500: '#7c5aeb',
    950: '#000000',
  },
}
SCSS
$custom: #7c5aeb;
$custom-light: #aa8af2;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5aeb",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 235
  },
  "hsl": {
    "h": 254.069,
    "s": 78.378,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58089,
    "c": 0.20829,
    "h": 289
  },
  "luminance": 0.17596
}

Semantic roles & 50–950 ramp

primary
#7C5AEB
secondary
#DEEAB7
accent
#DB0BAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5AEB

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

Preview Lab → · Contrast checker → · Palette generator →

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