#7C5AE6#7C5AE6

#7C5AE6 is a mid, highly saturated violet. Relative luminance 0.173; OKLCH L 57.7% C 0.202 H 289.7°. Best body text is #FFFFFF at 4.71:1 contrast (WCAG AA passes).

Color values

HEX#7C5AE6
RGBrgb(124, 90, 230)
HSLhsl(255, 74%, 63%)
HSVhsv(255, 61%, 90%)
CMYKcmyk(46.1%, 60.9%, 0%, 9.8%)
CIE-LABlab(48.65, 46.95, -66.57)
CIE-LCHlch(48.65, 81.46, 305.19°)
OKLaboklab(57.72% 0.0683 -0.1903)
OKLCHoklch(57.72% 0.202 289.7)
XYZxyz(26.2472, 17.3096, 76.8057)
Luminance0.1731 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5AE6 #C4E65A
analogous
#5A7EE6 #7C5AE6 #C25AE6
triadic
#7C5AE6 #E67C5A #5AE67C
tetradic
#7C5AE6 #E65A7E #C4E65A #5AE6C2
square
#7C5AE6 #E65A7E #C4E65A #5AE6C2
split-complementary
#7C5AE6 #E6C25A #7EE65A
monochromatic
#3D1AAC #5225DE #7C5AE6 #A68FEE #D0C4F6

Accessibility & contrast

On white

4.71
#7C5AE6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.46
#7C5AE6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5AE6
4.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5AE6#FFFFFF#000000##FFFFFF
##7C5AE61.004.714.464.71
#FFFFFF4.711.0021.001.00
#0000004.4621.001.0021.00
##FFFFFF4.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0076EA
Deuteranopia (green-blind)
#0070E3
Tritanopia (blue-blind)
#5B7A98
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7c5ae6;
/* rgb */ color: rgb(124, 90, 230);
/* oklch */ color: oklch(57.7% 0.202 289.7);
Tailwind
colors: {
  custom: {
    50: '#a98aef',
    500: '#7c5ae6',
    950: '#000000',
  },
}
SCSS
$custom: #7c5ae6;
$custom-light: #a98aef;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5ae6",
  "rgb": {
    "r": 124,
    "g": 90,
    "b": 230
  },
  "hsl": {
    "h": 254.571,
    "s": 73.684,
    "l": 62.745
  },
  "oklch": {
    "l": 0.5772,
    "c": 0.20218,
    "h": 289.7
  },
  "luminance": 0.17311
}

Semantic roles & 50–950 ramp

primary
#7C5AE6
secondary
#DBE7B5
accent
#D610A6
background
#FAF8FE
surface
#F5F0FD
border
#CFCBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7C5AE6

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

Preview Lab → · Contrast checker → · Palette generator →

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