#7E5EC0#7E5EC0

#7E5EC0 is a mid, vivid violet. Relative luminance 0.162; OKLCH L 56.0% C 0.148 H 296.4°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#7E5EC0
RGBrgb(126, 94, 192)
HSLhsl(260, 44%, 56%)
HSVhsv(260, 51%, 75%)
CMYKcmyk(34.4%, 51%, 0%, 24.7%)
CIE-LABlab(47.30, 34.72, -47.03)
CIE-LCHlch(47.30, 58.46, 306.44°)
OKLaboklab(56% 0.0658 -0.1328)
OKLCHoklch(56% 0.148 296.4)
XYZxyz(22.1189, 16.2465, 51.8295)
Luminance0.1625 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EC0 #A0C05E
analogous
#5E6FC0 #7E5EC0 #AF5EC0
triadic
#7E5EC0 #C07E5E #5EC07E
tetradic
#7E5EC0 #C05E6F #A0C05E #5EC0AF
square
#7E5EC0 #C05E6F #A0C05E #5EC0AF
split-complementary
#7E5EC0 #C0AF5E #6FC05E
monochromatic
#452E76 #5F3FA2 #7E5EC0 #A18AD1 #C4B6E2

Accessibility & contrast

On white

4.94
#7E5EC0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#7E5EC0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5EC0
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EC0#FFFFFF#000000##FFFFFF
##7E5EC01.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3971C3
Deuteranopia (green-blind)
#416FBE
Tritanopia (blue-blind)
#6F7186
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5ec0;
/* rgb */ color: rgb(126, 94, 192);
/* oklch */ color: oklch(56.0% 0.148 296.4);
Tailwind
colors: {
  custom: {
    50: '#a78cd3',
    500: '#7e5ec0',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ec0;
$custom-light: #a78cd3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ec0",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 192
  },
  "hsl": {
    "h": 259.592,
    "s": 43.75,
    "l": 56.078
  },
  "oklch": {
    "l": 0.55995,
    "c": 0.14824,
    "h": 296.4
  },
  "luminance": 0.16247
}

Semantic roles & 50–950 ramp

primary
#7E5EC0
secondary
#C4D1A9
accent
#D354AA
background
#FAF8FD
surface
#F4F0FA
border
#CECBD3
text
#100C14
muted
#7F7D83

Preview Lab

Preview with #7E5EC0

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

Preview Lab → · Contrast checker → · Palette generator →

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