#7E57D5#7E57D5

#7E57D5 is a mid, vivid violet. Relative luminance 0.161; OKLCH L 56.2% C 0.185 H 293.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#7E57D5
RGBrgb(126, 87, 213)
HSLhsl(259, 60%, 59%)
HSVhsv(259, 59%, 84%)
CMYKcmyk(40.8%, 59.2%, 0%, 16.5%)
CIE-LABlab(47.05, 44.36, -59.50)
CIE-LCHlch(47.05, 74.22, 306.70°)
OKLaboklab(56.23% 0.075 -0.1695)
OKLCHoklch(56.23% 0.185 293.9)
XYZxyz(24.0194, 16.0555, 64.7714)
Luminance0.1606 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E57D5 #AED557
analogous
#576FD5 #7E57D5 #BD57D5
triadic
#7E57D5 #D57E57 #57D57E
tetradic
#7E57D5 #D5576F #AED557 #57D5BD
square
#7E57D5 #D5576F #AED557 #57D5BD
split-complementary
#7E57D5 #D5BD57 #6FD557
monochromatic
#45248E #5C30BF #7E57D5 #A488E1 #C9B9ED

Accessibility & contrast

On white

4.99
#7E57D5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#7E57D5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E57D5
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E57D5#FFFFFF#000000##FFFFFF
##7E57D51.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0071D9
Deuteranopia (green-blind)
#146DD2
Tritanopia (blue-blind)
#67738E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #7e57d5;
/* rgb */ color: rgb(126, 87, 213);
/* oklch */ color: oklch(56.2% 0.185 293.9);
Tailwind
colors: {
  custom: {
    50: '#a988e3',
    500: '#7e57d5',
    950: '#000000',
  },
}
SCSS
$custom: #7e57d5;
$custom-light: #a988e3;
$custom-dark: #000000;
JSON
{
  "hex": "#7e57d5",
  "rgb": {
    "r": 126,
    "g": 87,
    "b": 213
  },
  "hsl": {
    "h": 258.571,
    "s": 60,
    "l": 58.824
  },
  "oklch": {
    "l": 0.56229,
    "c": 0.1853,
    "h": 293.9
  },
  "luminance": 0.16056
}

Semantic roles & 50–950 ramp

primary
#7E57D5
secondary
#CDDDAB
accent
#E345B2
background
#FAF8FE
surface
#F4F0FC
border
#CECBD5
text
#100B15
muted
#7F7C84

Preview Lab

Preview with #7E57D5

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

Preview Lab → · Contrast checker → · Palette generator →

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