#7E5CEE#7E5CEE

#7E5CEE is a mid, highly saturated violet. Relative luminance 0.183; OKLCH L 58.8% C 0.209 H 289.0°. Best body text is #000000 at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#7E5CEE
RGBrgb(126, 92, 238)
HSLhsl(254, 81%, 65%)
HSVhsv(254, 61%, 93%)
CMYKcmyk(47.1%, 61.3%, 0%, 6.7%)
CIE-LABlab(49.81, 48.46, -69.18)
CIE-LCHlch(49.81, 84.46, 305.01°)
OKLaboklab(58.79% 0.0683 -0.1979)
OKLCHoklch(58.79% 0.209 289)
XYZxyz(27.8595, 18.2618, 82.9293)
Luminance0.1826 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CEE #CCEE5C
analogous
#5C83EE #7E5CEE #C75CEE
triadic
#7E5CEE #EE7E5C #5CEE7E
tetradic
#7E5CEE #EE5C83 #CCEE5C #5CEEC7
square
#7E5CEE #EE5C83 #CCEE5C #5CEEC7
split-complementary
#7E5CEE #EEC75C #83EE5C
monochromatic
#3B14BC #5225E8 #7E5CEE #AA93F4 #D6CBFA

Accessibility & contrast

On white

4.51
#7E5CEE on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.65
#7E5CEE on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CEE
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CEE#FFFFFF#000000##000000
##7E5CEE1.004.514.654.65
#FFFFFF4.511.0021.0021.00
#0000004.6521.001.001.00
##0000004.6521.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F3
Deuteranopia (green-blind)
#0073EB
Tritanopia (blue-blind)
#597E9D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5cee;
/* rgb */ color: rgb(126, 92, 238);
/* oklch */ color: oklch(58.8% 0.209 289.0);
Tailwind
colors: {
  custom: {
    50: '#ab8cf4',
    500: '#7e5cee',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cee;
$custom-light: #ab8cf4;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cee",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 238
  },
  "hsl": {
    "h": 253.973,
    "s": 81.111,
    "l": 64.706
  },
  "oklch": {
    "l": 0.58791,
    "c": 0.20935,
    "h": 289
  },
  "luminance": 0.18263
}

Semantic roles & 50–950 ramp

primary
#7E5CEE
secondary
#E0ECBA
accent
#DD08AC
background
#FBF8FF
surface
#F6F0FE
border
#D0CBD6
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5CEE

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

Preview Lab → · Contrast checker → · Palette generator →

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