#7E5AF6#7E5AF6

#7E5AF6 is a mid, highly saturated violet. Relative luminance 0.184; OKLCH L 59.1% C 0.221 H 288.3°. Best body text is #000000 at 4.68:1 contrast (WCAG AA passes).

Color values

HEX#7E5AF6
RGBrgb(126, 90, 246)
HSLhsl(254, 90%, 66%)
HSVhsv(254, 63%, 96%)
CMYKcmyk(48.8%, 63.4%, 0%, 3.5%)
CIE-LABlab(49.98, 51.79, -73.38)
CIE-LCHlch(49.98, 89.82, 305.21°)
OKLaboklab(59.09% 0.0696 -0.2103)
OKLCHoklch(59.09% 0.221 288.3)
XYZxyz(28.8901, 18.4005, 89.2003)
Luminance0.1840 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AF6 #D2F65A
analogous
#5A84F6 #7E5AF6 #CC5AF6
triadic
#7E5AF6 #F67E5A #5AF67E
tetradic
#7E5AF6 #F65A84 #D2F65A #5AF6CC
square
#7E5AF6 #F65A84 #D2F65A #5AF6CC
split-complementary
#7E5AF6 #F6CC5A #84F65A
monochromatic
#370BCB #5120F3 #7E5AF6 #AB94F9 #D9CEFC

Accessibility & contrast

On white

4.49
#7E5AF6 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.68
#7E5AF6 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5AF6
4.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AF6#FFFFFF#000000##000000
##7E5AF61.004.494.684.68
#FFFFFF4.491.0021.0021.00
#0000004.6821.001.001.00
##0000004.6821.001.001.00

Color blindness preview

Protanopia (red-blind)
#007AFB
Deuteranopia (green-blind)
#0073F3
Tritanopia (blue-blind)
#5480A0
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #7e5af6;
/* rgb */ color: rgb(126, 90, 246);
/* oklch */ color: oklch(59.1% 0.221 288.3);
Tailwind
colors: {
  custom: {
    50: '#ac8afa',
    500: '#7e5af6',
    950: '#000000',
  },
}
SCSS
$custom: #7e5af6;
$custom-light: #ac8afa;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5af6",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 246
  },
  "hsl": {
    "h": 253.846,
    "s": 89.655,
    "l": 65.882
  },
  "oklch": {
    "l": 0.59092,
    "c": 0.22149,
    "h": 288.3
  },
  "luminance": 0.18402
}

Semantic roles & 50–950 ramp

primary
#7E5AF6
secondary
#E4F0BC
accent
#E600B1
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AF6

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

Preview Lab → · Contrast checker → · Palette generator →

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