#7E5FE8#7E5FE8

#7E5FE8 is a mid, vivid violet. Relative luminance 0.184; OKLCH L 58.8% C 0.198 H 289.3°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7E5FE8
RGBrgb(126, 95, 232)
HSLhsl(254, 75%, 64%)
HSVhsv(254, 59%, 91%)
CMYKcmyk(45.7%, 59.1%, 0%, 9%)
CIE-LABlab(50.03, 45.11, -65.45)
CIE-LCHlch(50.03, 79.49, 304.57°)
OKLaboklab(58.82% 0.0654 -0.1869)
OKLCHoklch(58.82% 0.198 289.3)
XYZxyz(27.2577, 18.4452, 78.4524)
Luminance0.1845 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5FE8 #C9E85F
analogous
#5F85E8 #7E5FE8 #C35FE8
triadic
#7E5FE8 #E87E5F #5FE87E
tetradic
#7E5FE8 #E85F85 #C9E85F #5FE8C3
square
#7E5FE8 #E85F85 #C9E85F #5FE8C3
split-complementary
#7E5FE8 #E8C35F #85E85F
monochromatic
#3C1AB3 #5329E0 #7E5FE8 #A995F0 #D4CAF7

Accessibility & contrast

On white

4.48
#7E5FE8 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.69
#7E5FE8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5FE8
4.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5FE8#FFFFFF#000000##000000
##7E5FE81.004.484.694.69
#FFFFFF4.481.0021.0021.00
#0000004.6921.001.001.00
##0000004.6921.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AEC
Deuteranopia (green-blind)
#0074E5
Tritanopia (blue-blind)
#5D7E9A
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5fe8;
/* rgb */ color: rgb(126, 95, 232);
/* oklch */ color: oklch(58.8% 0.198 289.3);
Tailwind
colors: {
  custom: {
    50: '#aa8df0',
    500: '#7e5fe8',
    950: '#000000',
  },
}
SCSS
$custom: #7e5fe8;
$custom-light: #aa8df0;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5fe8",
  "rgb": {
    "r": 126,
    "g": 95,
    "b": 232
  },
  "hsl": {
    "h": 253.577,
    "s": 74.863,
    "l": 64.118
  },
  "oklch": {
    "l": 0.5882,
    "c": 0.19805,
    "h": 289.3
  },
  "luminance": 0.18446
}

Semantic roles & 50–950 ramp

primary
#7E5FE8
secondary
#DEE9BA
accent
#D70EAA
background
#FBF8FE
surface
#F6F0FD
border
#D0CBD5
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5FE8

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

Preview Lab → · Contrast checker → · Palette generator →

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