#7E5CEB#7E5CEB

#7E5CEB is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.6% C 0.206 H 289.4°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E5CEB
RGBrgb(126, 92, 235)
HSLhsl(254, 78%, 64%)
HSVhsv(254, 61%, 92%)
CMYKcmyk(46.4%, 60.9%, 0%, 7.8%)
CIE-LABlab(49.60, 47.62, -67.84)
CIE-LCHlch(49.60, 82.88, 305.07°)
OKLaboklab(58.57% 0.0684 -0.194)
OKLCHoklch(58.57% 0.206 289.4)
XYZxyz(27.4225, 18.0870, 80.6274)
Luminance0.1809 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CEB #C9EB5C
analogous
#5C82EB #7E5CEB #C65CEB
triadic
#7E5CEB #EB7E5C #5CEB7E
tetradic
#7E5CEB #EB5C82 #C9EB5C #5CEBC6
square
#7E5CEB #EB5C82 #C9EB5C #5CEBC6
split-complementary
#7E5CEB #EBC65C #82EB5C
monochromatic
#3C16B6 #5325E4 #7E5CEB #A993F2 #D4C9F8

Accessibility & contrast

On white

4.55
#7E5CEB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#7E5CEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CEB
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CEB#FFFFFF#000000##000000
##7E5CEB1.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #7e5ceb;
/* rgb */ color: rgb(126, 92, 235);
/* oklch */ color: oklch(58.6% 0.206 289.4);
Tailwind
colors: {
  custom: {
    50: '#ab8cf2',
    500: '#7e5ceb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ceb;
$custom-light: #ab8cf2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ceb",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 235
  },
  "hsl": {
    "h": 254.266,
    "s": 78.142,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5857,
    "c": 0.20568,
    "h": 289.4
  },
  "luminance": 0.18088
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E5CEB

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

Preview Lab → · Contrast checker → · Palette generator →

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