#7E5BF8#7E5BF8

#7E5BF8 is a mid, highly saturated violet. Relative luminance 0.187; OKLCH L 59.4% C 0.223 H 287.9°. Best body text is #000000 at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#7E5BF8
RGBrgb(126, 91, 248)
HSLhsl(253, 92%, 66%)
HSVhsv(253, 63%, 97%)
CMYKcmyk(49.2%, 63.3%, 0%, 2.7%)
CIE-LABlab(50.33, 51.81, -73.93)
CIE-LCHlch(50.33, 90.28, 305.02°)
OKLaboklab(59.39% 0.0684 -0.2119)
OKLCHoklch(59.39% 0.223 287.9)
XYZxyz(29.2836, 18.6938, 90.8540)
Luminance0.1870 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BF8 #D5F85B
analogous
#5B87F8 #7E5BF8 #CD5BF8
triadic
#7E5BF8 #F87E5B #5BF87E
tetradic
#7E5BF8 #F85B87 #D5F85B #5BF8CD
square
#7E5BF8 #F85B87 #D5F85B #5BF8CD
split-complementary
#7E5BF8 #F8CD5B #87F85B
monochromatic
#3509D0 #5020F5 #7E5BF8 #AC96FB #DAD0FD

Accessibility & contrast

On white

4.43
#7E5BF8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.74
#7E5BF8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5BF8
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BF8#FFFFFF#000000##000000
##7E5BF81.004.434.744.74
#FFFFFF4.431.0021.0021.00
#0000004.7421.001.001.00
##0000004.7421.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFD
Deuteranopia (green-blind)
#0074F5
Tritanopia (blue-blind)
#5381A1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5bf8;
/* rgb */ color: rgb(126, 91, 248);
/* oklch */ color: oklch(59.4% 0.223 287.9);
Tailwind
colors: {
  custom: {
    50: '#ac8bfc',
    500: '#7e5bf8',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bf8;
$custom-light: #ac8bfc;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bf8",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 248
  },
  "hsl": {
    "h": 253.376,
    "s": 91.813,
    "l": 66.471
  },
  "oklch": {
    "l": 0.59391,
    "c": 0.22266,
    "h": 287.9
  },
  "luminance": 0.18695
}

Semantic roles & 50–950 ramp

primary
#7E5BF8
secondary
#E6F1BE
accent
#E600B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5BF8

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

Preview Lab → · Contrast checker → · Palette generator →

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