#7E5BE4#7E5BE4

#7E5BE4 is a mid, vivid violet. Relative luminance 0.175; OKLCH L 57.9% C 0.198 H 290.6°. Best body text is #FFFFFF at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#7E5BE4
RGBrgb(126, 91, 228)
HSLhsl(255, 72%, 63%)
HSVhsv(255, 60%, 89%)
CMYKcmyk(44.7%, 60.1%, 0%, 10.6%)
CIE-LABlab(48.91, 46.23, -65.02)
CIE-LCHlch(48.91, 79.78, 305.42°)
OKLaboklab(57.91% 0.0699 -0.1857)
OKLCHoklch(57.91% 0.198 290.6)
XYZxyz(26.3449, 17.5183, 75.3770)
Luminance0.1752 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BE4 #C1E45B
analogous
#5B7DE4 #7E5BE4 #C25BE4
triadic
#7E5BE4 #E47E5B #5BE47E
tetradic
#7E5BE4 #E45B7D #C1E45B #5BE4C2
square
#7E5BE4 #E45B7D #C1E45B #5BE4C2
split-complementary
#7E5BE4 #E4C25B #7DE45B
monochromatic
#401CA9 #5526DB #7E5BE4 #A790ED #D1C4F5

Accessibility & contrast

On white

4.66
#7E5BE4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#7E5BE4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BE4
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BE4#FFFFFF#000000##FFFFFF
##7E5BE41.004.664.504.66
#FFFFFF4.661.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E8
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#5F7A97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e5be4;
/* rgb */ color: rgb(126, 91, 228);
/* oklch */ color: oklch(57.9% 0.198 290.6);
Tailwind
colors: {
  custom: {
    50: '#aa8bed',
    500: '#7e5be4',
    950: '#000000',
  },
}
SCSS
$custom: #7e5be4;
$custom-light: #aa8bed;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5be4",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 228
  },
  "hsl": {
    "h": 255.328,
    "s": 71.728,
    "l": 62.549
  },
  "oklch": {
    "l": 0.5791,
    "c": 0.19839,
    "h": 290.6
  },
  "luminance": 0.17519
}

Semantic roles & 50–950 ramp

primary
#7E5BE4
secondary
#DAE6B4
accent
#D412A2
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7E5BE4

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

Preview Lab → · Contrast checker → · Palette generator →

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