#7E5EF8#7E5EF8

#7E5EF8 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.8% C 0.219 H 287.4°. Best body text is #000000 at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#7E5EF8
RGBrgb(126, 94, 248)
HSLhsl(252, 92%, 67%)
HSVhsv(252, 62%, 97%)
CMYKcmyk(49.2%, 62.1%, 0%, 2.7%)
CIE-LABlab(50.94, 50.17, -72.94)
CIE-LCHlch(50.94, 88.52, 304.52°)
OKLaboklab(59.84% 0.0655 -0.2089)
OKLCHoklch(59.84% 0.219 287.4)
XYZxyz(29.5452, 19.2170, 90.9412)
Luminance0.1922 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5EF8 #D8F85E
analogous
#5E8BF8 #7E5EF8 #CB5EF8
triadic
#7E5EF8 #F87E5E #5EF87E
tetradic
#7E5EF8 #F85E8B #D8F85E #5EF8CB
square
#7E5EF8 #F85E8B #D8F85E #5EF8CB
split-complementary
#7E5EF8 #F8CB5E #8BF85E
monochromatic
#3309D2 #4F23F5 #7E5EF8 #AD99FB #DCD3FD

Accessibility & contrast

On white

4.34
#7E5EF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.84
#7E5EF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5EF8
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5EF8#FFFFFF#000000##000000
##7E5EF81.004.344.844.84
#FFFFFF4.341.0021.0021.00
#0000004.8421.001.001.00
##0000004.8421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFD
Deuteranopia (green-blind)
#0075F5
Tritanopia (blue-blind)
#5383A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e5ef8;
/* rgb */ color: rgb(126, 94, 248);
/* oklch */ color: oklch(59.8% 0.219 287.4);
Tailwind
colors: {
  custom: {
    50: '#ac8dfc',
    500: '#7e5ef8',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ef8;
$custom-light: #ac8dfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ef8",
  "rgb": {
    "r": 126,
    "g": 94,
    "b": 248
  },
  "hsl": {
    "h": 252.468,
    "s": 91.667,
    "l": 67.059
  },
  "oklch": {
    "l": 0.59836,
    "c": 0.21897,
    "h": 287.4
  },
  "luminance": 0.19218
}

Semantic roles & 50–950 ramp

primary
#7E5EF8
secondary
#E7F1C0
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5EF8

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

Preview Lab → · Contrast checker → · Palette generator →

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