#7E57DB#7E57DB

#7E57DB is a mid, vivid violet. Relative luminance 0.164; OKLCH L 56.7% C 0.193 H 292.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#7E57DB
RGBrgb(126, 87, 219)
HSLhsl(258, 65%, 60%)
HSVhsv(258, 60%, 86%)
CMYKcmyk(42.5%, 60.3%, 0%, 14.1%)
CIE-LABlab(47.45, 45.99, -62.27)
CIE-LCHlch(47.45, 77.41, 306.45°)
OKLaboklab(56.65% 0.0747 -0.1776)
OKLCHoklch(56.65% 0.193 292.8)
XYZxyz(24.7951, 16.3658, 68.8566)
Luminance0.1637 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#7E57DB #B4DB57
analogous
#5772DB #7E57DB #C057DB
triadic
#7E57DB #DB7E57 #57DB7E
tetradic
#7E57DB #DB5772 #B4DB57 #57DBC0
square
#7E57DB #DB5772 #B4DB57 #57DBC0
split-complementary
#7E57DB #DBC057 #72DB57
monochromatic
#432097 #5A2BCA #7E57DB #A589E6 #CBBCF1

Accessibility & contrast

On white

4.91
#7E57DB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.27
#7E57DB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #7E57DB
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##7E57DB#FFFFFF#000000##FFFFFF
##7E57DB1.004.914.274.91
#FFFFFF4.911.0021.001.00
#0000004.2721.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0072DF
Deuteranopia (green-blind)
#006ED8
Tritanopia (blue-blind)
#647591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #7e57db;
/* rgb */ color: rgb(126, 87, 219);
/* oklch */ color: oklch(56.7% 0.193 292.8);
Tailwind
colors: {
  custom: {
    50: '#a988e7',
    500: '#7e57db',
    950: '#000000',
  },
}
SCSS
$custom: #7e57db;
$custom-light: #a988e7;
$custom-dark: #000000;
JSON
{
  "hex": "#7e57db",
  "rgb": {
    "r": 126,
    "g": 87,
    "b": 219
  },
  "hsl": {
    "h": 257.727,
    "s": 64.706,
    "l": 60
  },
  "oklch": {
    "l": 0.56652,
    "c": 0.19268,
    "h": 292.8
  },
  "luminance": 0.16366
}

Semantic roles & 50–950 ramp

primary
#7E57DB
secondary
#D1E0AD
accent
#E840B6
background
#FAF8FE
surface
#F4F0FD
border
#CECBD5
text
#100B16
muted
#7F7C84

Preview Lab

Preview with #7E57DB

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

Preview Lab → · Contrast checker → · Palette generator →

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