#7E5FF4#7E5FF4

#7E5FF4 is a mid, highly saturated violet. Relative luminance 0.192; OKLCH L 59.7% C 0.213 H 287.7°. Best body text is #000000 at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#7E5FF4
RGBrgb(126, 95, 244)
HSLhsl(252, 87%, 66%)
HSVhsv(252, 61%, 96%)
CMYKcmyk(48.4%, 61.1%, 0%, 4.3%)
CIE-LABlab(50.86, 48.49, -70.83)
CIE-LCHlch(50.86, 85.84, 304.39°)
OKLaboklab(59.69% 0.0648 -0.2028)
OKLCHoklch(59.69% 0.213 287.7)
XYZxyz(29.0208, 19.1504, 87.7377)
Luminance0.1915 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FF4 #D5F45F
analogous
#5F8BF4 #7E5FF4 #C95FF4
triadic
#7E5FF4 #F47E5F #5FF47E
tetradic
#7E5FF4 #F45F8B #D5F45F #5FF4C9
square
#7E5FF4 #F45F8B #D5F45F #5FF4C9
split-complementary
#7E5FF4 #F4C95F #8BF45F
monochromatic
#350ECB #5026F0 #7E5FF4 #AC98F8 #DAD2FC

Accessibility & contrast

On white

4.35
#7E5FF4 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.83
#7E5FF4 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5FF4
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FF4#FFFFFF#000000##000000
##7E5FF41.004.354.834.83
#FFFFFF4.351.0021.0021.00
#0000004.8321.001.001.00
##0000004.8321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007DF9
Deuteranopia (green-blind)
#0075F1
Tritanopia (blue-blind)
#5582A1
Achromatopsia (no color)
#797979

Design tokens & code

CSS
--color: #7e5ff4;
/* rgb */ color: rgb(126, 95, 244);
/* oklch */ color: oklch(59.7% 0.213 287.7);
Tailwind
colors: {
  custom: {
    50: '#ac8ef9',
    500: '#7e5ff4',
    950: '#000000',
  },
}
SCSS
$custom: #7e5ff4;
$custom-light: #ac8ef9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5ff4",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 244
  },
  "hsl": {
    "h": 252.483,
    "s": 87.135,
    "l": 66.471
  },
  "oklch": {
    "l": 0.5969,
    "c": 0.21286,
    "h": 287.7
  },
  "luminance": 0.19152
}

Semantic roles & 50–950 ramp

primary
#7E5FF4
secondary
#E6F0BF
accent
#E402B5
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5FF4

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

Preview Lab → · Contrast checker → · Palette generator →

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