#7E57C8#7E57C8

#7E57C8 is a mid, vivid violet. Relative luminance 0.154; OKLCH L 55.3% C 0.169 H 296.4°. Best body text is #FFFFFF at 5.14:1 contrast (WCAG AA passes).

Color values

HEX#7E57C8
RGBrgb(126, 87, 200)
HSLhsl(261, 51%, 56%)
HSVhsv(261, 57%, 78%)
CMYKcmyk(37%, 56.5%, 0%, 21.6%)
CIE-LABlab(46.21, 40.87, -53.39)
CIE-LCHlch(46.21, 67.24, 307.43°)
OKLaboklab(55.34% 0.0751 -0.1515)
OKLCHoklch(55.34% 0.169 296.4)
XYZxyz(22.4350, 15.4218, 56.4271)
Luminance0.1542 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E57C8 #A1C857
analogous
#5769C8 #7E57C8 #B757C8
triadic
#7E57C8 #C87E57 #57C87E
tetradic
#7E57C8 #C85769 #A1C857 #57C8B7
square
#7E57C8 #C85769 #A1C857 #57C8B7
split-complementary
#7E57C8 #C8B757 #69C857
monochromatic
#45297C #5F38AA #7E57C8 #A185D7 #C5B3E6

Accessibility & contrast

On white

5.14
#7E57C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#7E57C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E57C8
5.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E57C8#FFFFFF#000000##FFFFFF
##7E57C81.005.144.085.14
#FFFFFF5.141.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F6ECC
Deuteranopia (green-blind)
#2E6CC5
Tritanopia (blue-blind)
#6C6F87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #7e57c8;
/* rgb */ color: rgb(126, 87, 200);
/* oklch */ color: oklch(55.3% 0.169 296.4);
Tailwind
colors: {
  custom: {
    50: '#a888d9',
    500: '#7e57c8',
    950: '#000000',
  },
}
SCSS
$custom: #7e57c8;
$custom-light: #a888d9;
$custom-dark: #000000;
JSON
{
  "hex": "#7e57c8",
  "rgb": {
    "r": 126,
    "g": 87,
    "b": 200
  },
  "hsl": {
    "h": 260.708,
    "s": 50.673,
    "l": 56.275
  },
  "oklch": {
    "l": 0.55343,
    "c": 0.1691,
    "h": 296.4
  },
  "luminance": 0.15422
}

Semantic roles & 50–950 ramp

primary
#7E57C8
secondary
#C5D5A6
accent
#DA4EAA
background
#FAF8FD
surface
#F4F0FB
border
#CECBD4
text
#100B15
muted
#7F7C83

Preview Lab

Preview with #7E57C8

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

Preview Lab → · Contrast checker → · Palette generator →

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