#7C5ECA#7C5ECA

#7C5ECA is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.4% C 0.161 H 293.4°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7C5ECA
RGBrgb(124, 94, 202)
HSLhsl(257, 50%, 58%)
HSVhsv(257, 53%, 79%)
CMYKcmyk(38.6%, 53.5%, 0%, 20.8%)
CIE-LABlab(47.69, 36.91, -52.17)
CIE-LCHlch(47.69, 63.91, 305.28°)
OKLaboklab(56.44% 0.0639 -0.148)
OKLCHoklch(56.44% 0.161 293.4)
XYZxyz(22.9727, 16.5542, 57.8506)
Luminance0.1656 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7C5ECA #ACCA5E
analogous
#5E76CA #7C5ECA #B25ECA
triadic
#7C5ECA #CA7C5E #5ECA7C
tetradic
#7C5ECA #CA5E76 #ACCA5E #5ECAB2
square
#7C5ECA #CA5E76 #ACCA5E #5ECAB2
split-complementary
#7C5ECA #CAB25E #76CA5E
monochromatic
#432B83 #5B3AB1 #7C5ECA #A18CD9 #C7BAE8

Accessibility & contrast

On white

4.87
#7C5ECA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7C5ECA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7C5ECA
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7C5ECA#FFFFFF#000000##FFFFFF
##7C5ECA1.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2E72CE
Deuteranopia (green-blind)
#356FC8
Tritanopia (blue-blind)
#68748B
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7c5eca;
/* rgb */ color: rgb(124, 94, 202);
/* oklch */ color: oklch(56.4% 0.161 293.4);
Tailwind
colors: {
  custom: {
    50: '#a68cdb',
    500: '#7c5eca',
    950: '#000000',
  },
}
SCSS
$custom: #7c5eca;
$custom-light: #a68cdb;
$custom-dark: #000000;
JSON
{
  "hex": "#7c5eca",
  "rgb": {
    "r": 124,
    "g": 94,
    "b": 202
  },
  "hsl": {
    "h": 256.667,
    "s": 50.467,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56435,
    "c": 0.16117,
    "h": 293.4
  },
  "luminance": 0.16555
}

Semantic roles & 50–950 ramp

primary
#7C5ECA
secondary
#CBD7AC
accent
#DA4EB3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7C5ECA

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

Preview Lab → · Contrast checker → · Palette generator →

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