#7E5AF2#7E5AF2

#7E5AF2 is a mid, highly saturated violet. Relative luminance 0.182; OKLCH L 58.8% C 0.217 H 288.8°. Best body text is #000000 at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#7E5AF2
RGBrgb(126, 90, 242)
HSLhsl(254, 85%, 65%)
HSVhsv(254, 63%, 95%)
CMYKcmyk(47.9%, 62.8%, 0%, 5.1%)
CIE-LABlab(49.69, 50.68, -71.62)
CIE-LCHlch(49.69, 87.74, 305.28°)
OKLaboklab(58.79% 0.07 -0.2051)
OKLCHoklch(58.79% 0.217 288.8)
XYZxyz(28.2827, 18.1576, 86.0017)
Luminance0.1816 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AF2 #CEF25A
analogous
#5A82F2 #7E5AF2 #CA5AF2
triadic
#7E5AF2 #F27E5A #5AF27E
tetradic
#7E5AF2 #F25A82 #CEF25A #5AF2CA
square
#7E5AF2 #F25A82 #CEF25A #5AF2CA
split-complementary
#7E5AF2 #F2CA5A #82F25A
monochromatic
#3A0FC2 #5221EE #7E5AF2 #AA93F6 #D7CBFB

Accessibility & contrast

On white

4.53
#7E5AF2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.63
#7E5AF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5AF2
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AF2#FFFFFF#000000##000000
##7E5AF21.004.534.634.63
#FFFFFF4.531.0021.0021.00
#0000004.6321.001.001.00
##0000004.6321.001.001.00

Color blindness preview

Protanopia (red-blind)
#0079F7
Deuteranopia (green-blind)
#0072EF
Tritanopia (blue-blind)
#577E9E
Achromatopsia (no color)
#767676

Design tokens & code

CSS
--color: #7e5af2;
/* rgb */ color: rgb(126, 90, 242);
/* oklch */ color: oklch(58.8% 0.217 288.8);
Tailwind
colors: {
  custom: {
    50: '#ac8af7',
    500: '#7e5af2',
    950: '#000000',
  },
}
SCSS
$custom: #7e5af2;
$custom-light: #ac8af7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5af2",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 242
  },
  "hsl": {
    "h": 254.211,
    "s": 85.393,
    "l": 65.098
  },
  "oklch": {
    "l": 0.58789,
    "c": 0.2167,
    "h": 288.8
  },
  "luminance": 0.18159
}

Semantic roles & 50–950 ramp

primary
#7E5AF2
secondary
#E1EEBA
accent
#E204AD
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C17
muted
#807D85

Preview Lab

Preview with #7E5AF2

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

Preview Lab → · Contrast checker → · Palette generator →

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