#7E5ECF#7E5ECF

#7E5ECF is a mid, vivid violet. Relative luminance 0.169; OKLCH L 56.9% C 0.168 H 293.4°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#7E5ECF
RGBrgb(126, 94, 207)
HSLhsl(257, 54%, 59%)
HSVhsv(257, 55%, 81%)
CMYKcmyk(39.1%, 54.6%, 0%, 18.8%)
CIE-LABlab(48.19, 38.76, -54.23)
CIE-LCHlch(48.19, 66.65, 305.55°)
OKLaboklab(56.95% 0.0667 -0.1539)
OKLCHoklch(56.95% 0.168 293.4)
XYZxyz(23.8664, 16.9454, 61.0327)
Luminance0.1695 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5ECF #AFCF5E
analogous
#5E77CF #7E5ECF #B75ECF
triadic
#7E5ECF #CF7E5E #5ECF7E
tetradic
#7E5ECF #CF5E77 #AFCF5E #5ECFB7
square
#7E5ECF #CF5E77 #AFCF5E #5ECFB7
split-complementary
#7E5ECF #CFB75E #77CF5E
monochromatic
#44298A #5C37B9 #7E5ECF #A48DDD #CABCEB

Accessibility & contrast

On white

4.78
#7E5ECF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#7E5ECF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5ECF
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5ECF#FFFFFF#000000##FFFFFF
##7E5ECF1.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2974D3
Deuteranopia (green-blind)
#3170CC
Tritanopia (blue-blind)
#69768D
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5ecf;
/* rgb */ color: rgb(126, 94, 207);
/* oklch */ color: oklch(56.9% 0.168 293.4);
Tailwind
colors: {
  custom: {
    50: '#a88cde',
    500: '#7e5ecf',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ecf;
$custom-light: #a88cde;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ecf",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 207
  },
  "hsl": {
    "h": 256.991,
    "s": 54.067,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56948,
    "c": 0.16776,
    "h": 293.4
  },
  "luminance": 0.16946
}

Semantic roles & 50–950 ramp

primary
#7E5ECF
secondary
#CEDBAE
accent
#DD4AB4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5ECF

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

Preview Lab → · Contrast checker → · Palette generator →

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