#7E5AFB#7E5AFB

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

Color values

HEX#7E5AFB
RGBrgb(126, 90, 251)
HSLhsl(253, 95%, 67%)
HSVhsv(253, 64%, 98%)
CMYKcmyk(49.8%, 64.1%, 0%, 1.6%)
CIE-LABlab(50.35, 53.19, -75.57)
CIE-LCHlch(50.35, 92.41, 305.14°)
OKLaboklab(59.48% 0.0691 -0.2167)
OKLCHoklch(59.48% 0.227 287.7)
XYZxyz(29.6678, 18.7116, 93.2965)
Luminance0.1871 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AFB #D7FB5A
analogous
#5A87FB #7E5AFB #CE5AFB
triadic
#7E5AFB #FB7E5A #5AFB7E
tetradic
#7E5AFB #FB5A87 #D7FB5A #5AFBCE
square
#7E5AFB #FB5A87 #D7FB5A #5AFBCE
split-complementary
#7E5AFB #FBCE5A #87FB5A
monochromatic
#3405D5 #4F1EFA #7E5AFB #AD96FC #DBD2FE

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E5AFB#FFFFFF#000000##000000
##7E5AFB1.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)
#007CFF
Deuteranopia (green-blind)
#0073F8
Tritanopia (blue-blind)
#5181A3
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5afb;
/* rgb */ color: rgb(126, 90, 251);
/* oklch */ color: oklch(59.5% 0.227 287.7);
Tailwind
colors: {
  custom: {
    50: '#ad8bfe',
    500: '#7e5afb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5afb;
$custom-light: #ad8bfe;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5afb",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 251
  },
  "hsl": {
    "h": 253.416,
    "s": 95.266,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59476,
    "c": 0.22744,
    "h": 287.7
  },
  "luminance": 0.18713
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #7E5AFB

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

Preview Lab → · Contrast checker → · Palette generator →

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