#7E5AFA#7E5AFA

#7E5AFA is a mid, highly saturated violet. Relative luminance 0.186; OKLCH L 59.4% C 0.226 H 287.8°. Best body text is #000000 at 4.73:1 contrast (WCAG AA passes).

Color values

HEX#7E5AFA
RGBrgb(126, 90, 250)
HSLhsl(254, 94%, 67%)
HSVhsv(254, 64%, 98%)
CMYKcmyk(49.6%, 64%, 0%, 2%)
CIE-LABlab(50.27, 52.91, -75.13)
CIE-LCHlch(50.27, 91.89, 305.15°)
OKLaboklab(59.4% 0.0692 -0.2154)
OKLCHoklch(59.4% 0.226 287.8)
XYZxyz(29.5106, 18.6487, 92.4686)
Luminance0.1865 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E5AFA #D6FA5A
analogous
#5A86FA #7E5AFA #CE5AFA
triadic
#7E5AFA #FA7E5A #5AFA7E
tetradic
#7E5AFA #FA5A86 #D6FA5A #5AFACE
square
#7E5AFA #FA5A86 #D6FA5A #5AFACE
split-complementary
#7E5AFA #FACE5A #86FA5A
monochromatic
#3406D3 #501FF8 #7E5AFA #AC95FC #DBD1FE

Accessibility & contrast

On white

4.44
#7E5AFA on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.73
#7E5AFA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #7E5AFA
4.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E5AFA#FFFFFF#000000##000000
##7E5AFA1.004.444.734.73
#FFFFFF4.441.0021.0021.00
#0000004.7321.001.001.00
##0000004.7321.001.001.00

Color blindness preview

Protanopia (red-blind)
#007BFF
Deuteranopia (green-blind)
#0073F7
Tritanopia (blue-blind)
#5181A2
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #7e5afa;
/* rgb */ color: rgb(126, 90, 250);
/* oklch */ color: oklch(59.4% 0.226 287.8);
Tailwind
colors: {
  custom: {
    50: '#ad8bfd',
    500: '#7e5afa',
    950: '#000000',
  },
}
SCSS
$custom: #7e5afa;
$custom-light: #ad8bfd;
$custom-dark: #000000;
JSON
{
  "hex": "#7e5afa",
  "rgb": {
    "r": 126,
    "g": 90,
    "b": 250
  },
  "hsl": {
    "h": 253.5,
    "s": 94.118,
    "l": 66.667
  },
  "oklch": {
    "l": 0.59399,
    "c": 0.22625,
    "h": 287.8
  },
  "luminance": 0.1865
}

Semantic roles & 50–950 ramp

primary
#7E5AFA
secondary
#E6F2BE
accent
#E600B2
background
#FBF8FF
surface
#F6F0FF
border
#D0CBD7
text
#110C18
muted
#807D86

Preview Lab

Preview with #7E5AFA

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

Preview Lab → · Contrast checker → · Palette generator →

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