#7E5AF7#7E5AF7

#7E5AF7 is a mid, highly saturated violet. Relative luminance 0.185; OKLCH L 59.2% C 0.223 H 288.2°. Best body text is #000000 at 4.69:1 contrast (WCAG AA passes).

Color values

HEX#7E5AF7
RGBrgb(126, 90, 247)
HSLhsl(254, 91%, 66%)
HSVhsv(254, 64%, 97%)
CMYKcmyk(49%, 63.6%, 0%, 3.1%)
CIE-LABlab(50.05, 52.07, -73.82)
CIE-LCHlch(50.05, 90.34, 305.20°)
OKLaboklab(59.17% 0.0695 -0.2116)
OKLCHoklch(59.17% 0.223 288.2)
XYZxyz(29.0440, 18.4621, 90.0108)
Luminance0.1846 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AF7 #D3F75A
analogous
#5A84F7 #7E5AF7 #CC5AF7
triadic
#7E5AF7 #F77E5A #5AF77E
tetradic
#7E5AF7 #F75A84 #D3F75A #5AF7CC
square
#7E5AF7 #F75A84 #D3F75A #5AF7CC
split-complementary
#7E5AF7 #F7CC5A #84F75A
monochromatic
#370ACD #5020F4 #7E5AF7 #AC94FA #D9CFFD

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##7E5AF7#FFFFFF#000000##000000
##7E5AF71.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)
#007BFC
Deuteranopia (green-blind)
#0073F4
Tritanopia (blue-blind)
#5480A1
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5af7;
/* rgb */ color: rgb(126, 90, 247);
/* oklch */ color: oklch(59.2% 0.223 288.2);
Tailwind
colors: {
  custom: {
    50: '#ac8bfb',
    500: '#7e5af7',
    950: '#000000',
  },
}
SCSS
$custom: #7e5af7;
$custom-light: #ac8bfb;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5af7",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 247
  },
  "hsl": {
    "h": 253.758,
    "s": 90.751,
    "l": 66.078
  },
  "oklch": {
    "l": 0.59169,
    "c": 0.22268,
    "h": 288.2
  },
  "luminance": 0.18463
}

Semantic roles & 50–950 ramp

primary
#7E5AF7
secondary
#E4F0BD
accent
#E600B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5AF7

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

Preview Lab → · Contrast checker → · Palette generator →

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