#7E5BCD#7E5BCD

#7E5BCD is a mid, vivid violet. Relative luminance 0.163; OKLCH L 56.3% C 0.170 H 294.5°. Best body text is #FFFFFF at 4.92:1 contrast (WCAG AA passes).

Color values

HEX#7E5BCD
RGBrgb(126, 91, 205)
HSLhsl(258, 53%, 58%)
HSVhsv(258, 56%, 80%)
CMYKcmyk(38.5%, 55.6%, 0%, 19.6%)
CIE-LABlab(47.40, 39.94, -54.36)
CIE-LCHlch(47.40, 67.45, 306.30°)
OKLaboklab(56.32% 0.0703 -0.1543)
OKLCHoklch(56.32% 0.17 294.5)
XYZxyz(23.3618, 16.3251, 59.6660)
Luminance0.1633 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BCD #AACD5B
analogous
#5B71CD #7E5BCD #B75BCD
triadic
#7E5BCD #CD7E5B #5BCD7E
tetradic
#7E5BCD #CD5B71 #AACD5B #5BCDB7
square
#7E5BCD #CD5B71 #AACD5B #5BCDB7
split-complementary
#7E5BCD #CDB75B #71CD5B
monochromatic
#452985 #5D37B4 #7E5BCD #A38ADB #C8B9EA

Accessibility & contrast

On white

4.92
#7E5BCD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7E5BCD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BCD
4.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BCD#FFFFFF#000000##FFFFFF
##7E5BCD1.004.924.274.92
#FFFFFF4.921.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2372D1
Deuteranopia (green-blind)
#2E6FCA
Tritanopia (blue-blind)
#6A738B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e5bcd;
/* rgb */ color: rgb(126, 91, 205);
/* oklch */ color: oklch(56.3% 0.170 294.5);
Tailwind
colors: {
  custom: {
    50: '#a88add',
    500: '#7e5bcd',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bcd;
$custom-light: #a88add;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bcd",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 205
  },
  "hsl": {
    "h": 258.421,
    "s": 53.271,
    "l": 58.039
  },
  "oklch": {
    "l": 0.56322,
    "c": 0.16957,
    "h": 294.5
  },
  "luminance": 0.16326
}

Semantic roles & 50–950 ramp

primary
#7E5BCD
secondary
#CBD9AB
accent
#DD4BB0
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5BCD

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

Preview Lab → · Contrast checker → · Palette generator →

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