#7C5AE8#7C5AE8

#7C5AE8 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 57.9% C 0.205 H 289.4°. Best body text is #FFFFFF at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7C5AE8
RGBrgb(124, 90, 232)
HSLhsl(254, 76%, 63%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(46.6%, 61.2%, 0%, 9%)
CIE-LABlab(48.79, 47.51, -67.47)
CIE-LCHlch(48.79, 82.52, 305.15°)
OKLaboklab(57.87% 0.0681 -0.193)
OKLCHoklch(57.87% 0.205 289.4)
XYZxyz(26.5297, 17.4226, 78.2933)
Luminance0.1742 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AE8 #C6E85A
analogous
#5A7FE8 #7C5AE8 #C35AE8
triadic
#7C5AE8 #E87C5A #5AE87C
tetradic
#7C5AE8 #E85A7F #C6E85A #5AE8C3
square
#7C5AE8 #E85A7F #C6E85A #5AE8C3
split-complementary
#7C5AE8 #E8C35A #7FE85A
monochromatic
#3D18AF #5124E1 #7C5AE8 #A790EF #D1C5F7

Accessibility & contrast

On white

4.68
#7C5AE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.48
#7C5AE8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5AE8
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AE8#FFFFFF#000000##FFFFFF
##7C5AE81.004.684.484.68
#FFFFFF4.681.0021.001.00
#0000004.4821.001.0021.00
##FFFFFF4.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077ED
Deuteranopia (green-blind)
#0070E5
Tritanopia (blue-blind)
#597B99
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5ae8;
/* rgb */ color: rgb(124, 90, 232);
/* oklch */ color: oklch(57.9% 0.205 289.4);
Tailwind
colors: {
  custom: {
    50: '#a98af0',
    500: '#7c5ae8',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ae8;
$custom-light: #a98af0;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ae8",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 232
  },
  "hsl": {
    "h": 254.366,
    "s": 75.532,
    "l": 63.137
  },
  "oklch": {
    "l": 0.57867,
    "c": 0.20463,
    "h": 289.4
  },
  "luminance": 0.17424
}

Semantic roles & 50–950 ramp

primary
#7C5AE8
secondary
#DCE8B5
accent
#D80EA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5AE8

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

Preview Lab → · Contrast checker → · Palette generator →

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