#7E5CE9#7E5CE9

#7E5CE9 is a mid, highly saturated violet. Relative luminance 0.180; OKLCH L 58.4% C 0.203 H 289.7°. Best body text is #000000 at 4.59:1 contrast (WCAG AA passes).

Color values

HEX#7E5CE9
RGBrgb(126, 92, 233)
HSLhsl(254, 76%, 64%)
HSVhsv(254, 61%, 91%)
CMYKcmyk(45.9%, 60.5%, 0%, 8.6%)
CIE-LABlab(49.46, 47.07, -66.94)
CIE-LCHlch(49.46, 81.83, 305.11°)
OKLaboklab(58.43% 0.0686 -0.1913)
OKLCHoklch(58.43% 0.203 289.7)
XYZxyz(27.1351, 17.9721, 79.1142)
Luminance0.1797 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CE9 #C7E95C
analogous
#5C80E9 #7E5CE9 #C45CE9
triadic
#7E5CE9 #E97E5C #5CE97E
tetradic
#7E5CE9 #E95C80 #C7E95C #5CE9C4
square
#7E5CE9 #E95C80 #C7E95C #5CE9C4
split-complementary
#7E5CE9 #E9C45C #80E95C
monochromatic
#3D18B3 #5326E2 #7E5CE9 #A992F0 #D3C8F8

Accessibility & contrast

On white

4.57
#7E5CE9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.59
#7E5CE9 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CE9
4.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CE9#FFFFFF#000000##000000
##7E5CE91.004.574.594.59
#FFFFFF4.571.0021.0021.00
#0000004.5921.001.001.00
##0000004.5921.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078EE
Deuteranopia (green-blind)
#0072E6
Tritanopia (blue-blind)
#5C7D9A
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5ce9;
/* rgb */ color: rgb(126, 92, 233);
/* oklch */ color: oklch(58.4% 0.203 289.7);
Tailwind
colors: {
  custom: {
    50: '#ab8cf1',
    500: '#7e5ce9',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ce9;
$custom-light: #ab8cf1;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ce9",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 233
  },
  "hsl": {
    "h": 254.468,
    "s": 76.216,
    "l": 63.725
  },
  "oklch": {
    "l": 0.58425,
    "c": 0.20322,
    "h": 289.7
  },
  "luminance": 0.17973
}

Semantic roles & 50–950 ramp

primary
#7E5CE9
secondary
#DDE9B8
accent
#D80DA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5CE9

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

Preview Lab → · Contrast checker → · Palette generator →

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