#7E5BE5#7E5BE5

#7E5BE5 is a mid, vivid violet. Relative luminance 0.176; OKLCH L 58.0% C 0.200 H 290.5°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7E5BE5
RGBrgb(126, 91, 229)
HSLhsl(255, 73%, 63%)
HSVhsv(255, 60%, 90%)
CMYKcmyk(45%, 60.3%, 0%, 10.2%)
CIE-LABlab(48.98, 46.51, -65.47)
CIE-LCHlch(48.98, 80.31, 305.39°)
OKLaboklab(57.98% 0.0698 -0.187)
OKLCHoklch(57.98% 0.2 290.5)
XYZxyz(26.4842, 17.5740, 76.1102)
Luminance0.1757 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BE5 #C2E55B
analogous
#5B7DE5 #7E5BE5 #C35BE5
triadic
#7E5BE5 #E57E5B #5BE57E
tetradic
#7E5BE5 #E55B7D #C2E55B #5BE5C3
square
#7E5BE5 #E55B7D #C2E55B #5BE5C3
split-complementary
#7E5BE5 #E5C35B #7DE55B
monochromatic
#3F1BAB #5426DD #7E5BE5 #A890ED #D1C5F6

Accessibility & contrast

On white

4.65
#7E5BE5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.51
#7E5BE5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #7E5BE5
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BE5#FFFFFF#000000##FFFFFF
##7E5BE51.004.654.514.65
#FFFFFF4.651.0021.001.00
#0000004.5121.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0077E9
Deuteranopia (green-blind)
#0071E2
Tritanopia (blue-blind)
#5F7B97
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #7e5be5;
/* rgb */ color: rgb(126, 91, 229);
/* oklch */ color: oklch(58.0% 0.200 290.5);
Tailwind
colors: {
  custom: {
    50: '#aa8bee',
    500: '#7e5be5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5be5;
$custom-light: #aa8bee;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5be5",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 229
  },
  "hsl": {
    "h": 255.217,
    "s": 72.632,
    "l": 62.745
  },
  "oklch": {
    "l": 0.57982,
    "c": 0.19962,
    "h": 290.5
  },
  "luminance": 0.17575
}

Semantic roles & 50–950 ramp

primary
#7E5BE5
secondary
#DAE7B5
accent
#D511A3
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C16
muted
#807D84

Preview Lab

Preview with #7E5BE5

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

Preview Lab → · Contrast checker → · Palette generator →

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