#7E5CD3#7E5CD3

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

Color values

HEX#7E5CD3
RGBrgb(126, 92, 211)
HSLhsl(257, 57%, 59%)
HSVhsv(257, 56%, 83%)
CMYKcmyk(40.3%, 56.4%, 0%, 17.3%)
CIE-LABlab(48.00, 40.99, -56.83)
CIE-LCHlch(48.00, 70.07, 305.80°)
OKLaboklab(56.89% 0.0691 -0.1616)
OKLCHoklch(56.89% 0.176 293.2)
XYZxyz(24.1861, 16.7924, 63.5824)
Luminance0.1679 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CD3 #B1D35C
analogous
#5C76D3 #7E5CD3 #BA5CD3
triadic
#7E5CD3 #D37E5C #5CD37E
tetradic
#7E5CD3 #D35C76 #B1D35C #5CD3BA
square
#7E5CD3 #D35C76 #B1D35C #5CD3BA
split-complementary
#7E5CD3 #D3BA5C #76D35C
monochromatic
#44268E #5B33BE #7E5CD3 #A48CE0 #CABCED

Accessibility & contrast

On white

4.82
#7E5CD3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.36
#7E5CD3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CD3
4.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CD3#FFFFFF#000000##FFFFFF
##7E5CD31.004.824.364.82
#FFFFFF4.821.0021.001.00
#0000004.3621.001.0021.00
##FFFFFF4.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B73D7
Deuteranopia (green-blind)
#2770D0
Tritanopia (blue-blind)
#68758F
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5cd3;
/* rgb */ color: rgb(126, 92, 211);
/* oklch */ color: oklch(56.9% 0.176 293.2);
Tailwind
colors: {
  custom: {
    50: '#a88be1',
    500: '#7e5cd3',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cd3;
$custom-light: #a88be1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cd3",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 211
  },
  "hsl": {
    "h": 257.143,
    "s": 57.488,
    "l": 59.412
  },
  "oklch": {
    "l": 0.56885,
    "c": 0.17576,
    "h": 293.2
  },
  "luminance": 0.16793
}

Semantic roles & 50–950 ramp

primary
#7E5CD3
secondary
#CFDDAE
accent
#E147B5
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5CD3

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

Preview Lab → · Contrast checker → · Palette generator →

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