#7E5FF6#7E5FF6

#7E5FF6 is a mid, highly saturated violet. Relative luminance 0.193; OKLCH L 59.8% C 0.215 H 287.5°. Best body text is #000000 at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#7E5FF6
RGBrgb(126, 95, 246)
HSLhsl(252, 89%, 67%)
HSVhsv(252, 61%, 96%)
CMYKcmyk(48.8%, 61.4%, 0%, 3.5%)
CIE-LABlab(51.00, 49.05, -71.72)
CIE-LCHlch(51.00, 86.89, 304.37°)
OKLaboklab(59.84% 0.0647 -0.2054)
OKLCHoklch(59.84% 0.215 287.5)
XYZxyz(29.3261, 19.2725, 89.3457)
Luminance0.1927 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FF6 #D7F65F
analogous
#5F8CF6 #7E5FF6 #CA5FF6
triadic
#7E5FF6 #F67E5F #5FF67E
tetradic
#7E5FF6 #F65F8C #D7F65F #5FF6CA
square
#7E5FF6 #F65F8C #D7F65F #5FF6CA
split-complementary
#7E5FF6 #F6CA5F #8CF65F
monochromatic
#340CCF #4F25F3 #7E5FF6 #AD99F9 #DBD3FD

Accessibility & contrast

On white

4.33
#7E5FF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.85
#7E5FF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5FF6
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FF6#FFFFFF#000000##000000
##7E5FF61.004.334.854.85
#FFFFFF4.331.0021.0021.00
#0000004.8521.001.001.00
##0000004.8521.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DFB
Deuteranopia (green-blind)
#0075F3
Tritanopia (blue-blind)
#5483A2
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e5ff6;
/* rgb */ color: rgb(126, 95, 246);
/* oklch */ color: oklch(59.8% 0.215 287.5);
Tailwind
colors: {
  custom: {
    50: '#ac8efa',
    500: '#7e5ff6',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ff6;
$custom-light: #ac8efa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ff6",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 246
  },
  "hsl": {
    "h": 252.318,
    "s": 89.349,
    "l": 66.863
  },
  "oklch": {
    "l": 0.59838,
    "c": 0.21531,
    "h": 287.5
  },
  "luminance": 0.19274
}

Semantic roles & 50–950 ramp

primary
#7E5FF6
secondary
#E7F1C0
accent
#E600B6
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5FF6

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

Preview Lab → · Contrast checker → · Palette generator →

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