#7E5FEB#7E5FEB

#7E5FEB is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.0% C 0.202 H 288.9°. Best body text is #000000 at 4.72:1 contrast (WCAG AA passes).

Color values

HEX#7E5FEB
RGBrgb(126, 95, 235)
HSLhsl(253, 78%, 65%)
HSVhsv(253, 60%, 92%)
CMYKcmyk(46.4%, 59.6%, 0%, 7.8%)
CIE-LABlab(50.24, 45.95, -66.81)
CIE-LCHlch(50.24, 81.08, 304.52°)
OKLaboklab(59.03% 0.0653 -0.1909)
OKLCHoklch(59.03% 0.202 288.9)
XYZxyz(27.6875, 18.6171, 80.7158)
Luminance0.1862 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FEB #CCEB5F
analogous
#5F86EB #7E5FEB #C45FEB
triadic
#7E5FEB #EB7E5F #5FEB7E
tetradic
#7E5FEB #EB5F86 #CCEB5F #5FEBC4
square
#7E5FEB #EB5F86 #CCEB5F #5FEBC4
split-complementary
#7E5FEB #EBC45F #86EB5F
monochromatic
#3B17B9 #5229E4 #7E5FEB #AA95F2 #D6CCF9

Accessibility & contrast

On white

4.45
#7E5FEB on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.72
#7E5FEB on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5FEB
4.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FEB#FFFFFF#000000##000000
##7E5FEB1.004.454.724.72
#FFFFFF4.451.0021.0021.00
#0000004.7221.001.001.00
##0000004.7221.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AF0
Deuteranopia (green-blind)
#0074E8
Tritanopia (blue-blind)
#5B7F9C
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5feb;
/* rgb */ color: rgb(126, 95, 235);
/* oklch */ color: oklch(59.0% 0.202 288.9);
Tailwind
colors: {
  custom: {
    50: '#ab8ef2',
    500: '#7e5feb',
    950: '#000000',
  },
}
SCSS
$custom: #7e5feb;
$custom-light: #ab8ef2;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5feb",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 235
  },
  "hsl": {
    "h": 253.286,
    "s": 77.778,
    "l": 64.706
  },
  "oklch": {
    "l": 0.59034,
    "c": 0.20178,
    "h": 288.9
  },
  "luminance": 0.18618
}

Semantic roles & 50–950 ramp

primary
#7E5FEB
secondary
#E0EBBB
accent
#DA0BAC
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5FEB

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

Preview Lab → · Contrast checker → · Palette generator →

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