#7E5BDC#7E5BDC

#7E5BDC is a mid, vivid violet. Relative luminance 0.171; OKLCH L 57.3% C 0.188 H 291.9°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#7E5BDC
RGBrgb(126, 91, 220)
HSLhsl(256, 65%, 61%)
HSVhsv(256, 59%, 86%)
CMYKcmyk(42.7%, 58.6%, 0%, 13.7%)
CIE-LABlab(48.37, 44.03, -61.36)
CIE-LCHlch(48.37, 75.52, 305.66°)
OKLaboklab(57.34% 0.0702 -0.1749)
OKLCHoklch(57.34% 0.188 291.9)
XYZxyz(25.2600, 17.0843, 69.6630)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BDC #B9DC5B
analogous
#5B78DC #7E5BDC #BE5BDC
triadic
#7E5BDC #DC7E5B #5BDC7E
tetradic
#7E5BDC #DC5B78 #B9DC5B #5BDCBE
square
#7E5BDC #DC5B78 #B9DC5B #5BDCBE
split-complementary
#7E5BDC #DCBE5B #78DC5B
monochromatic
#42219B #582CCE #7E5BDC #A68DE7 #CDC0F2

Accessibility & contrast

On white

4.75
#7E5BDC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#7E5BDC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BDC
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BDC#FFFFFF#000000##FFFFFF
##7E5BDC1.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0075E0
Deuteranopia (green-blind)
#0C70D9
Tritanopia (blue-blind)
#637893
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #7e5bdc;
/* rgb */ color: rgb(126, 91, 220);
/* oklch */ color: oklch(57.3% 0.188 291.9);
Tailwind
colors: {
  custom: {
    50: '#a98be8',
    500: '#7e5bdc',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bdc;
$custom-light: #a98be8;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bdc",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 220
  },
  "hsl": {
    "h": 256.279,
    "s": 64.824,
    "l": 60.98
  },
  "oklch": {
    "l": 0.57343,
    "c": 0.18848,
    "h": 291.9
  },
  "luminance": 0.17085
}

Semantic roles & 50–950 ramp

primary
#7E5BDC
secondary
#D5E2B1
accent
#CD199C
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100C16
muted
#7F7D84

Preview Lab

Preview with #7E5BDC

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

Preview Lab → · Contrast checker → · Palette generator →

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