#7E5AF1#7E5AF1

#7E5AF1 is a mid, highly saturated violet. Relative luminance 0.181; OKLCH L 58.7% C 0.215 H 289.0°. Best body text is #000000 at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#7E5AF1
RGBrgb(126, 90, 241)
HSLhsl(254, 84%, 65%)
HSVhsv(254, 63%, 95%)
CMYKcmyk(47.7%, 62.7%, 0%, 5.5%)
CIE-LABlab(49.61, 50.40, -71.18)
CIE-LCHlch(49.61, 87.22, 305.30°)
OKLaboklab(58.71% 0.07 -0.2038)
OKLCHoklch(58.71% 0.216 289)
XYZxyz(28.1330, 18.0977, 85.2129)
Luminance0.1810 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AF1 #CDF15A
analogous
#5A81F1 #7E5AF1 #CA5AF1
triadic
#7E5AF1 #F17E5A #5AF17E
tetradic
#7E5AF1 #F15A81 #CDF15A #5AF1CA
square
#7E5AF1 #F15A81 #CDF15A #5AF1CA
split-complementary
#7E5AF1 #F1CA5A #81F15A
monochromatic
#3A10C0 #5222EC #7E5AF1 #AA92F6 #D6CBFB

Accessibility & contrast

On white

4.55
#7E5AF1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.62
#7E5AF1 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5AF1
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AF1#FFFFFF#000000##000000
##7E5AF11.004.554.624.62
#FFFFFF4.551.0021.0021.00
#0000004.6221.001.001.00
##0000004.6221.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F6
Deuteranopia (green-blind)
#0072EE
Tritanopia (blue-blind)
#587E9D
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5af1;
/* rgb */ color: rgb(126, 90, 241);
/* oklch */ color: oklch(58.7% 0.215 289.0);
Tailwind
colors: {
  custom: {
    50: '#ac8af7',
    500: '#7e5af1',
    950: '#000000',
  },
}
SCSS
$custom: #7e5af1;
$custom-light: #ac8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5af1",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 241
  },
  "hsl": {
    "h": 254.305,
    "s": 84.358,
    "l": 64.902
  },
  "oklch": {
    "l": 0.58714,
    "c": 0.2155,
    "h": 289
  },
  "luminance": 0.18099
}

Semantic roles & 50–950 ramp

primary
#7E5AF1
secondary
#E1EDBA
accent
#E105AC
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AF1

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

Preview Lab → · Contrast checker → · Palette generator →

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