#7E5BD2#7E5BD2

#7E5BD2 is a mid, vivid violet. Relative luminance 0.166; OKLCH L 56.7% C 0.176 H 293.6°. Best body text is #FFFFFF at 4.87:1 contrast (WCAG AA passes).

Color values

HEX#7E5BD2
RGBrgb(126, 91, 210)
HSLhsl(258, 57%, 59%)
HSVhsv(258, 57%, 82%)
CMYKcmyk(40%, 56.7%, 0%, 17.6%)
CIE-LABlab(47.71, 41.29, -56.71)
CIE-LCHlch(47.71, 70.15, 306.06°)
OKLaboklab(56.66% 0.0703 -0.1612)
OKLCHoklch(56.66% 0.176 293.6)
XYZxyz(23.9750, 16.5703, 62.8955)
Luminance0.1657 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BD2 #AFD25B
analogous
#5B74D2 #7E5BD2 #BA5BD2
triadic
#7E5BD2 #D27E5B #5BD27E
tetradic
#7E5BD2 #D25B74 #AFD25B #5BD2BA
square
#7E5BD2 #D25B74 #AFD25B #5BD2BA
split-complementary
#7E5BD2 #D2BA5B #74D25B
monochromatic
#44268C #5C34BC #7E5BD2 #A48BDF #CABBEC

Accessibility & contrast

On white

4.87
#7E5BD2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.31
#7E5BD2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BD2
4.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BD2#FFFFFF#000000##FFFFFF
##7E5BD21.004.874.314.87
#FFFFFF4.871.0021.001.00
#0000004.3121.001.0021.00
##FFFFFF4.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1973D6
Deuteranopia (green-blind)
#266FCF
Tritanopia (blue-blind)
#68748E
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e5bd2;
/* rgb */ color: rgb(126, 91, 210);
/* oklch */ color: oklch(56.7% 0.176 293.6);
Tailwind
colors: {
  custom: {
    50: '#a88ae0',
    500: '#7e5bd2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bd2;
$custom-light: #a88ae0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bd2",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 210
  },
  "hsl": {
    "h": 257.647,
    "s": 56.938,
    "l": 59.02
  },
  "oklch": {
    "l": 0.56656,
    "c": 0.17592,
    "h": 293.6
  },
  "luminance": 0.16571
}

Semantic roles & 50–950 ramp

primary
#7E5BD2
secondary
#CEDCAD
accent
#E048B3
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100C15
muted
#7F7D83

Preview Lab

Preview with #7E5BD2

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

Preview Lab → · Contrast checker → · Palette generator →

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