#7C5AE7#7C5AE7

#7C5AE7 is a mid, highly saturated violet. Relative luminance 0.174; OKLCH L 57.8% C 0.203 H 289.6°. Best body text is #FFFFFF at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7C5AE7
RGBrgb(124, 90, 231)
HSLhsl(254, 75%, 63%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(46.3%, 61%, 0%, 9.4%)
CIE-LABlab(48.72, 47.23, -67.02)
CIE-LCHlch(48.72, 81.99, 305.17°)
OKLaboklab(57.79% 0.0682 -0.1916)
OKLCHoklch(57.79% 0.203 289.6)
XYZxyz(26.3880, 17.3659, 77.5474)
Luminance0.1737 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AE7 #C5E75A
analogous
#5A7EE7 #7C5AE7 #C25AE7
triadic
#7C5AE7 #E77C5A #5AE77C
tetradic
#7C5AE7 #E75A7E #C5E75A #5AE7C2
square
#7C5AE7 #E75A7E #C5E75A #5AE7C2
split-complementary
#7C5AE7 #E7C25A #7EE75A
monochromatic
#3D19AD #5225DF #7C5AE7 #A68FEF #D1C5F7

Accessibility & contrast

On white

4.69
#7C5AE7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.47
#7C5AE7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5AE7
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AE7#FFFFFF#000000##FFFFFF
##7C5AE71.004.694.474.69
#FFFFFF4.691.0021.001.00
#0000004.4721.001.0021.00
##FFFFFF4.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EC
Deuteranopia (green-blind)
#0070E4
Tritanopia (blue-blind)
#5A7B98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5ae7;
/* rgb */ color: rgb(124, 90, 231);
/* oklch */ color: oklch(57.8% 0.203 289.6);
Tailwind
colors: {
  custom: {
    50: '#a98aef',
    500: '#7c5ae7',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ae7;
$custom-light: #a98aef;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ae7",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 231
  },
  "hsl": {
    "h": 254.468,
    "s": 74.603,
    "l": 62.941
  },
  "oklch": {
    "l": 0.57793,
    "c": 0.20341,
    "h": 289.6
  },
  "luminance": 0.17367
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7C5AE7

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

Preview Lab → · Contrast checker → · Palette generator →

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