#7E5BF5#7E5BF5

#7E5BF5 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.2% C 0.219 H 288.3°. Best body text is #000000 at 4.70:1 contrast (WCAG AA passes).

Color values

HEX#7E5BF5
RGBrgb(126, 91, 245)
HSLhsl(254, 89%, 66%)
HSVhsv(254, 63%, 96%)
CMYKcmyk(48.6%, 62.9%, 0%, 3.9%)
CIE-LABlab(50.11, 50.97, -72.61)
CIE-LCHlch(50.11, 88.72, 305.07°)
OKLaboklab(59.16% 0.0687 -0.208)
OKLCHoklch(59.16% 0.219 288.3)
XYZxyz(28.8219, 18.5091, 88.4225)
Luminance0.1851 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5BF5 #D2F55B
analogous
#5B85F5 #7E5BF5 #CB5BF5
triadic
#7E5BF5 #F57E5B #5BF57E
tetradic
#7E5BF5 #F55B85 #D2F55B #5BF5CB
square
#7E5BF5 #F55B85 #D2F55B #5BF5CB
split-complementary
#7E5BF5 #F5CB5B #85F55B
monochromatic
#370CC9 #5121F1 #7E5BF5 #AB95F9 #D9CEFC

Accessibility & contrast

On white

4.47
#7E5BF5 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.70
#7E5BF5 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5BF5
4.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5BF5#FFFFFF#000000##000000
##7E5BF51.004.474.704.70
#FFFFFF4.471.0021.0021.00
#0000004.7021.001.001.00
##0000004.7021.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFA
Deuteranopia (green-blind)
#0073F2
Tritanopia (blue-blind)
#5580A0
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5bf5;
/* rgb */ color: rgb(126, 91, 245);
/* oklch */ color: oklch(59.2% 0.219 288.3);
Tailwind
colors: {
  custom: {
    50: '#ac8bf9',
    500: '#7e5bf5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5bf5;
$custom-light: #ac8bf9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5bf5",
  "rgb": {
    "r": 126,
    "g": 91,
    "b": 245
  },
  "hsl": {
    "h": 253.636,
    "s": 88.506,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59163,
    "c": 0.21906,
    "h": 288.3
  },
  "luminance": 0.1851
}

Semantic roles & 50–950 ramp

primary
#7E5BF5
secondary
#E4EFBC
accent
#E500B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5BF5

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

Preview Lab → · Contrast checker → · Palette generator →

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