#7E5CF8#7E5CF8

#7E5CF8 is a mid, highly saturated violet. Relative luminance 0.189; OKLCH L 59.5% C 0.221 H 287.7°. Best body text is #000000 at 4.77:1 contrast (WCAG AA passes).

Color values

HEX#7E5CF8
RGBrgb(126, 92, 248)
HSLhsl(253, 92%, 67%)
HSVhsv(253, 63%, 97%)
CMYKcmyk(49.2%, 62.9%, 0%, 2.7%)
CIE-LABlab(50.53, 51.26, -73.60)
CIE-LCHlch(50.53, 89.70, 304.86°)
OKLaboklab(59.54% 0.0674 -0.2109)
OKLCHoklch(59.54% 0.221 287.7)
XYZxyz(29.3697, 18.8659, 90.8827)
Luminance0.1887 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5CF8 #D6F85C
analogous
#5C88F8 #7E5CF8 #CC5CF8
triadic
#7E5CF8 #F87E5C #5CF87E
tetradic
#7E5CF8 #F85C88 #D6F85C #5CF8CC
square
#7E5CF8 #F85C88 #D6F85C #5CF8CC
split-complementary
#7E5CF8 #F8CC5C #88F85C
monochromatic
#3409D1 #5021F5 #7E5CF8 #AC97FB #DBD1FD

Accessibility & contrast

On white

4.40
#7E5CF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.77
#7E5CF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5CF8
4.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5CF8#FFFFFF#000000##000000
##7E5CF81.004.404.774.77
#FFFFFF4.401.0021.0021.00
#0000004.7721.001.001.00
##0000004.7721.001.001.00

Color blindness preview

Protanopia (red-blind)
#007CFD
Deuteranopia (green-blind)
#0074F5
Tritanopia (blue-blind)
#5382A2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5cf8;
/* rgb */ color: rgb(126, 92, 248);
/* oklch */ color: oklch(59.5% 0.221 287.7);
Tailwind
colors: {
  custom: {
    50: '#ac8cfc',
    500: '#7e5cf8',
    950: '#000000',
  },
}
SCSS
$custom: #7e5cf8;
$custom-light: #ac8cfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5cf8",
  "rgb": {
    "r": 126,
    "g": 92,
    "b": 248
  },
  "hsl": {
    "h": 253.077,
    "s": 91.765,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59538,
    "c": 0.22144,
    "h": 287.7
  },
  "luminance": 0.18867
}

Semantic roles & 50–950 ramp

primary
#7E5CF8
secondary
#E6F1BF
accent
#E600B3
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5CF8

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

Preview Lab → · Contrast checker → · Palette generator →

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