#7E5BEB#7E5BEB

#7E5BEB is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.207 H 289.6°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7E5BEB
RGBrgb(126, 91, 235)
HSLhsl(255, 78%, 64%)
HSVhsv(255, 61%, 92%)
CMYKcmyk(46.4%, 61.3%, 0%, 7.8%)
CIE-LABlab(49.39, 48.18, -68.17)
CIE-LCHlch(49.39, 83.48, 305.25°)
OKLaboklab(58.42% 0.0695 -0.195)
OKLCHoklch(58.42% 0.207 289.6)
XYZxyz(27.3364, 17.9149, 80.5987)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BEB #C8EB5B
analogous
#5B80EB #7E5BEB #C65BEB
triadic
#7E5BEB #EB7E5B #5BEB7E
tetradic
#7E5BEB #EB5B80 #C8EB5B #5BEBC6
square
#7E5BEB #EB5B80 #C8EB5B #5BEBC6
split-complementary
#7E5BEB #EBC65B #80EB5B
monochromatic
#3D16B5 #5324E4 #7E5BEB #A992F2 #D4C8F8

Accessibility & contrast

On white

4.58
#7E5BEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7E5BEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5BEB
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BEB#FFFFFF#000000##000000
##7E5BEB1.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078F0
Deuteranopia (green-blind)
#0072E8
Tritanopia (blue-blind)
#5B7D9B
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5beb;
/* rgb */ color: rgb(126, 91, 235);
/* oklch */ color: oklch(58.4% 0.207 289.6);
Tailwind
colors: {
  custom: {
    50: '#ab8bf2',
    500: '#7e5beb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5beb;
$custom-light: #ab8bf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5beb",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 235
  },
  "hsl": {
    "h": 254.583,
    "s": 78.261,
    "l": 63.922
  },
  "oklch": {
    "l": 0.58418,
    "c": 0.20696,
    "h": 289.6
  },
  "luminance": 0.17916
}

Semantic roles & 50–950 ramp

primary
#7E5BEB
secondary
#DEEAB8
accent
#DB0BA8
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5BEB

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

Preview Lab → · Contrast checker → · Palette generator →

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