#7E5CD5#7E5CD5

#7E5CD5 is a mid, vivid violet. Relative luminance 0.169; OKLCH L 57.0% C 0.178 H 292.8°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#7E5CD5
RGBrgb(126, 92, 213)
HSLhsl(257, 59%, 60%)
HSVhsv(257, 57%, 84%)
CMYKcmyk(40.8%, 56.8%, 0%, 16.5%)
CIE-LABlab(48.13, 41.54, -57.76)
CIE-LCHlch(48.13, 71.15, 305.72°)
OKLaboklab(57.02% 0.0691 -0.1643)
OKLCHoklch(57.02% 0.178 292.8)
XYZxyz(24.4383, 16.8934, 64.9110)
Luminance0.1689 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CD5 #B3D55C
analogous
#5C76D5 #7E5CD5 #BB5CD5
triadic
#7E5CD5 #D57E5C #5CD57E
tetradic
#7E5CD5 #D55C76 #B3D55C #5CD5BB
square
#7E5CD5 #D55C76 #B3D55C #5CD5BB
split-complementary
#7E5CD5 #D5BB5C #76D55C
monochromatic
#442591 #5A32C2 #7E5CD5 #A58DE2 #CBBDEE

Accessibility & contrast

On white

4.80
#7E5CD5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#7E5CD5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5CD5
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CD5#FFFFFF#000000##FFFFFF
##7E5CD51.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1674D9
Deuteranopia (green-blind)
#2370D2
Tritanopia (blue-blind)
#677690
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #7e5cd5;
/* rgb */ color: rgb(126, 92, 213);
/* oklch */ color: oklch(57.0% 0.178 292.8);
Tailwind
colors: {
  custom: {
    50: '#a98be3',
    500: '#7e5cd5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cd5;
$custom-light: #a98be3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cd5",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 213
  },
  "hsl": {
    "h": 256.86,
    "s": 59.024,
    "l": 59.804
  },
  "oklch": {
    "l": 0.5702,
    "c": 0.17829,
    "h": 292.8
  },
  "luminance": 0.16894
}

Semantic roles & 50–950 ramp

primary
#7E5CD5
secondary
#D1DEAF
accent
#E246B6
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100C15
muted
#7F7D84

Preview Lab

Preview with #7E5CD5

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

Preview Lab → · Contrast checker → · Palette generator →

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