#7E5CE8#7E5CE8

#7E5CE8 is a mid, highly saturated violet. Relative luminance 0.179; OKLCH L 58.4% C 0.202 H 289.9°. Best body text is #000000 at 4.58:1 contrast (WCAG AA passes).

Color values

HEX#7E5CE8
RGBrgb(126, 92, 232)
HSLhsl(255, 75%, 64%)
HSVhsv(255, 60%, 91%)
CMYKcmyk(45.7%, 60.3%, 0%, 9%)
CIE-LABlab(49.39, 46.79, -66.49)
CIE-LCHlch(49.39, 81.30, 305.14°)
OKLaboklab(58.35% 0.0686 -0.19)
OKLCHoklch(58.35% 0.202 289.9)
XYZxyz(26.9927, 17.9151, 78.3640)
Luminance0.1792 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CE8 #C6E85C
analogous
#5C80E8 #7E5CE8 #C45CE8
triadic
#7E5CE8 #E87E5C #5CE87E
tetradic
#7E5CE8 #E85C80 #C6E85C #5CE8C4
square
#7E5CE8 #E85C80 #C6E85C #5CE8C4
split-complementary
#7E5CE8 #E8C45C #80E85C
monochromatic
#3E19B1 #5426E0 #7E5CE8 #A892F0 #D3C7F7

Accessibility & contrast

On white

4.58
#7E5CE8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.58
#7E5CE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CE8
4.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CE8#FFFFFF#000000##000000
##7E5CE81.004.584.584.58
#FFFFFF4.581.0021.0021.00
#0000004.5821.001.001.00
##0000004.5821.001.001.00

Color blindness preview

Protanopia (red-blind)
#0078ED
Deuteranopia (green-blind)
#0072E5
Tritanopia (blue-blind)
#5D7C99
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #7e5ce8;
/* rgb */ color: rgb(126, 92, 232);
/* oklch */ color: oklch(58.4% 0.202 289.9);
Tailwind
colors: {
  custom: {
    50: '#ab8cf0',
    500: '#7e5ce8',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ce8;
$custom-light: #ab8cf0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ce8",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 232
  },
  "hsl": {
    "h": 254.571,
    "s": 75.269,
    "l": 63.529
  },
  "oklch": {
    "l": 0.58352,
    "c": 0.202,
    "h": 289.9
  },
  "luminance": 0.17916
}

Semantic roles & 50–950 ramp

primary
#7E5CE8
secondary
#DDE9B7
accent
#D70EA7
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5CE8

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

Preview Lab → · Contrast checker → · Palette generator →

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