#7E5FF5#7E5FF5

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

Color values

HEX#7E5FF5
RGBrgb(126, 95, 245)
HSLhsl(252, 88%, 67%)
HSVhsv(252, 61%, 96%)
CMYKcmyk(48.6%, 61.2%, 0%, 3.9%)
CIE-LABlab(50.93, 48.77, -71.27)
CIE-LCHlch(50.93, 86.36, 304.38°)
OKLaboklab(59.76% 0.0647 -0.2041)
OKLCHoklch(59.76% 0.214 287.6)
XYZxyz(29.1730, 19.2113, 88.5395)
Luminance0.1921 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FF5 #D6F55F
analogous
#5F8BF5 #7E5FF5 #C95FF5
triadic
#7E5FF5 #F57E5F #5FF57E
tetradic
#7E5FF5 #F55F8B #D6F55F #5FF5C9
square
#7E5FF5 #F55F8B #D6F55F #5FF5C9
split-complementary
#7E5FF5 #F5C95F #8BF55F
monochromatic
#340DCD #5025F1 #7E5FF5 #AC99F9 #DBD2FC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E5FF5#FFFFFF#000000##000000
##7E5FF51.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)
#007DFA
Deuteranopia (green-blind)
#0075F2
Tritanopia (blue-blind)
#5582A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e5ff5;
/* rgb */ color: rgb(126, 95, 245);
/* oklch */ color: oklch(59.8% 0.214 287.6);
Tailwind
colors: {
  custom: {
    50: '#ac8ef9',
    500: '#7e5ff5',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ff5;
$custom-light: #ac8ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ff5",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 245
  },
  "hsl": {
    "h": 252.4,
    "s": 88.235,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59764,
    "c": 0.21409,
    "h": 287.6
  },
  "luminance": 0.19213
}

Semantic roles & 50–950 ramp

primary
#7E5FF5
secondary
#E6F0C0
accent
#E501B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5FF5

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

Preview Lab → · Contrast checker → · Palette generator →

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