#7E5CD2#7E5CD2

#7E5CD2 is a mid, vivid violet. Relative luminance 0.167; OKLCH L 56.8% C 0.174 H 293.3°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E5CD2
RGBrgb(126, 92, 210)
HSLhsl(257, 57%, 59%)
HSVhsv(257, 56%, 82%)
CMYKcmyk(40%, 56.2%, 0%, 17.6%)
CIE-LABlab(47.93, 40.72, -56.36)
CIE-LCHlch(47.93, 69.53, 305.85°)
OKLaboklab(56.82% 0.0691 -0.1602)
OKLCHoklch(56.82% 0.174 293.3)
XYZxyz(24.0611, 16.7425, 62.9242)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CD2 #B0D25C
analogous
#5C75D2 #7E5CD2 #B95CD2
triadic
#7E5CD2 #D27E5C #5CD27E
tetradic
#7E5CD2 #D25C75 #B0D25C #5CD2B9
square
#7E5CD2 #D25C75 #B0D25C #5CD2B9
split-complementary
#7E5CD2 #D2B95C #75D25C
monochromatic
#44278D #5B34BD #7E5CD2 #A48CDF #CABCEC

Accessibility & contrast

On white

4.83
#7E5CD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#7E5CD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CD2
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CD2#FFFFFF#000000##FFFFFF
##7E5CD21.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1D73D6
Deuteranopia (green-blind)
#2970CF
Tritanopia (blue-blind)
#68758E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5cd2;
/* rgb */ color: rgb(126, 92, 210);
/* oklch */ color: oklch(56.8% 0.174 293.3);
Tailwind
colors: {
  custom: {
    50: '#a88be0',
    500: '#7e5cd2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cd2;
$custom-light: #a88be0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cd2",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 210
  },
  "hsl": {
    "h": 257.288,
    "s": 56.731,
    "l": 59.216
  },
  "oklch": {
    "l": 0.56818,
    "c": 0.17449,
    "h": 293.3
  },
  "luminance": 0.16743
}

Semantic roles & 50–950 ramp

primary
#7E5CD2
secondary
#CFDCAE
accent
#E048B4
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5CD2

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

Preview Lab → · Contrast checker → · Palette generator →

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